bin

Hive交互方式

徘徊边缘 提交于 2019-11-30 07:34:28
第一种交互方式:Hive交互shell cd / export / servers / hive - 1.1 .0 - cdh5 . 14.0 bin / hive 查看所有的数据库 hive ( default ) > show databases ; 创建一个数据库 hive ( default ) > create database myhive ; 使用该数据库并创建数据库表 hive ( default ) > use myhive ; hive ( myhive ) > create table test1 ( id int , name string ) ; 以上命令操作完成之后,一定要确认mysql里面出来一个数据库hive 第二种交互方式:Hive JDBC服务 启动hiveserver2服务 前台启动 cd / export / servers / hive - 1.1 .0 - cdh5 . 14.0 bin / hive -- service hiveserver2 后台启动 cd / export / servers / hive - 1.1 .0 - cdh5 . 14.0 nohup bin / hive -- service hiveserver2 & beeline连接hiveserver2 bin / beeline beeline > !

How to generate bin frequency table in R?

匆匆过客 提交于 2019-11-30 07:01:27
问题 How can i bin data of size 0.1 for the following example. x<-c(0.01,0.34,0.45,0.67,0.89,0.12,0.34,0.45,0.23,0.45,0.34,0.32,0.45,0.21,0.55,0.66,0.99,0.23,.012,0.34) range frequency 0.1-0.2 a 0.2-0.3 b 0.3-0.4 c ................ ................ ................ ................ Regards 回答1: Regarding @akrun solution, I would post something usefull from the documentation ?cut , in case: Note Instead of table(cut(x, br)) , hist(x, br, plot = FALSE) is more efficient and less memory hungry. So,

CentOS 6.9 上安装Redis 4.0.8

回眸只為那壹抹淺笑 提交于 2019-11-30 05:46:06
同系列文章链接 CentOS 6.9 上安装JDK 8 CentOS 6.9 上安装Tomcat 8 CentOS 6.9 上安装Nginx 1.12.2 CentOS 6.9 上安装Redis 4.0.8 CentOS 6.9 上安装Mysql 5.6.39 一、准备工作 Tcl-8.6.1( 官网下载 ) redis-4.0.8( 官网下载 ) CentOS 6.9 环境(可以参考 博客 ) 二、正式开始 1、安装依赖包 # 切换root权限 su root # 安装gcc依赖 yum -y install gcc # tcl依赖 tar -zvxf tcl8.6.1-src.tar.gz mv tcl8.6.1 /usr/local/deps cd /usr/local/deps/tcl8.6.1/unix/ ./configure make make install 2、安装 #安装redis tar -zvxf redis-4.0.8.tar.gz mv redis-4.0.8 /usr/local/dev/ cd /usr/local/dev/redis-4.0.8 make # 编译并安装到 /usr/local/dev/redis-4.0.8/bin/ 目录下 make PREFIX = /usr/local/dev/redis-4.0.8/ install #

2、单机运行环境搭建之 --CentOS-6.5安装配置Tomcat8

假装没事ソ 提交于 2019-11-30 05:42:53
转自( http://www.cnblogs.com/littlehb/archive/2013/04/02/2994683.html ) 接上文。 一、下载tomcat cd /usr/local/src wget http://mirrors.hust.edu.cn/apache/tomcat/tomcat-8/v8.0.5/bin/apache-tomcat-8.0.5.zip 或者 wget http://mirrors.hust.edu.cn/apache/tomcat/tomcat-8/v8.0.5/bin/apache-tomcat-8.0.5.tar.gz 二、解压安装tomcat yum install unzip -y unzip -d /usr/local apache-tomcat-8.0.5.zip 或 tar –zxvf apache-tomcat-8.0.5.tar.gz cd /usr/local mv apache-tomcat-8.0.5/ tomcat1 三、配置环境变量 vi /etc/profile (1)在这个文件末尾加上 export JAVA_HOME=/usr/java/jdk1.8.0 export JRE_HOME=/usr/java/jdk1.8.0/jre export CLASSPATH=.:$JAVA_HOME/lib

打造Go开发环境

◇◆丶佛笑我妖孽 提交于 2019-11-30 03:12:30
1.到下面这个网址下载windows下的go语言安装包 https://studygolang.com/dl 2.双击下载的安装包,设置你要安装的路径(如D:\Go),一路下一步 3.添加D:\Go\bin到Path变量中,临时设置方法: set Path=%Path%;D:\Go\bin 4.添加GOPATH变量,即你的代码保存的位置,以便于IDE可以找到代码。我设置为:D:\GoProjects\,GOPATH可以设置多个目录,Go Get 下来的包会自动安装到GOPATH下的第一个目录的相应位置。 5.到下面的这个网址下载windows下的liteide安装包 http://liteide.org/cn/download/ 6.下载之后解压,并将liteide文件夹拷贝到Go的安装目录下,在liteide\bin文件夹下找到liteide.exe,双击运行。并且将liteide.exe做一个快捷键发送到桌面上。 7.打开liteide,切换环境到你电脑支持的系统win64 8.选择 工具->编辑当前环境 # native compiler windows amd64 GOROOT=D:\Go #GOBIN= GOARCH=amd64 GOOS=windows CGO_ENABLED=1 PATH=c:\mingw64\bin;%GOROOT%\bin;%PATH%

ubuntu Qt linuxdeployqt打包

删除回忆录丶 提交于 2019-11-30 03:07:06
1.下载 PatchELF 0.9 .,https://nixos.org/patchelf.html 安装:./configure make sudo make install 2.终端命令设置设置环境变量PATH qmake -v export PATH=/home/likewei/Qt5.11.2/5.11.2/gcc_64/bin:$PATH #自己Qt安装的位置 export LD_LIBRARY_PATH=/home/likewei/Qt5.11.2/5.11.2/gcc_64/lib:$LD_LIBRARY_PATH export QT_PLUGIN_PATH=/home/likewei/Qt5.11.2/5.11.2/gcc_64/plugins:$QT_PLUGIN_PATH export QML2_IMPORT_PATH=/home/likewei/Qt5.11.2/5.11.2/gcc_64/qml:$QML2_IMPORT_PATH 3.下载linuxdeployqt zip格式的源码包linuxdeployqt-master.zip,https://github.com/probonopd/linuxdeployqt 用Qt打开选择release模式进行编译。编译弹出终端就代表编译成功。

How I can execute a Batch Command in C# directly?

此生再无相见时 提交于 2019-11-30 02:58:52
问题 I want to execute a batch command and save the output in a string, but I can only execute the file and am not able to save the content in a string. Batch file: @echo off "C:\lmxendutil.exe" -licstatxml -host serv005 -port 6200>C:\Temp\HW_Lic_XML.xml notepad C:\Temp\HW_Lic_XML.xml C# code: private void btnShowLicstate_Click(object sender, EventArgs e) { string command = "'C:\\lmxendutil.exe' -licstatxml -host lwserv005 -port 6200"; txtOutput.Text = ExecuteCommand(command); } static string

STM32——ST-LINK通过BIN文件烧录STM32芯片(转)

99封情书 提交于 2019-11-30 02:51:21
转:https://www.cnblogs.com/schips/p/8215711.html 提供2种下载方式 KEIL编译下载 KEIL 5 在开发中还算是比较强大的一种平台。在开发中通过编译再下载会显得很方便。 尽管这个是老生常谈的问题,但还是在这里补全这个设置步骤 1.点击“魔法棒” 2.Debug 设置 ST官方下载方式 有时候,我们通过各种途径得到了一个bin或者hex文件(比如使用了 embed在线编译器 生成bin文件),那么我们应该怎么样把它烧录到板子中呢? 下面介绍由ST官方下载器烧录bin或者hex到开发板的过程 烧录文件:BIN、或者HEX文件 烧录方式:ST-LINK 烧录芯片:STM32F429I 烧录准备:   1.开发板自带的一根USB线   2.官方烧录软件: STM32 ST-LINK utility (下载需要登录账号)    具体步骤:   1.安装烧录软件,后打开。   2.连接好开发板到电脑。   3.Target --> Connect   (成功的结果)   4.Target --> Program & Verify     用Browse 打开一个程序编译结果     最好勾选Reset after programing     Start     如果成功,则可以看到绿色字体的结果。 来源: https://www.cnblogs

Mathematica fast 2D binning algorithm

邮差的信 提交于 2019-11-30 02:21:46
I am having some trouble developing a suitably fast binning algorithm in Mathematica. I have a large (~100k elements) data set of the form T={{x1,y1,z1},{x2,y2,z2},....} and I want to bin it into a 2D array of around 100x100 bins, with the bin value being given by the sum of the Z values that fall into each bin. Currently I am iterating through each element of the table, using Select to pick out which bin it is supposed to be in based on lists of bin boundaries, and adding the z value to a list of values occupying that bin. At the end I map Total onto the list of bins, summing their contents

在 CentOS 7 安装 Tomcat

两盒软妹~` 提交于 2019-11-30 01:06:22
一、 安装 JDK 8 1.1 下载 JDK 8 cd /opt/ wget --no-cookies --no-check-certificate --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie" "http://download.oracle.com/otn-pub/java/jdk/8u141-b15/336fa29ff2bb4ef291e347e091f7f4a7/jdk-8u141-linux-x64.tar.gz" 1.2 安装 JDK 8 tar xzf jdk-8u141-linux-x64.tar.gz cd jdk1.8.0_141 alternatives --install /usr/bin/java java /opt/jdk1.8.0_141/bin/java 2 alternatives --config java 界面显示内容如下: There is 1 program that provides 'java'. Selection Command ----------------------------------------------- *+ 1 /opt/jdk1.8.0_141/bin