export HIVE_HOME=/usr/hive/apache-hive-2.1.1-bin hive的安装路径#scp -r /usr/hive root@slave1:/usr/ 分发hive至节点slave1用作hive服务端配置)#scp -r /etc/profile root@slave1:/etc/ 将环境变量也分发往节点1(hive服务端)覆盖#cd /usr/hive/apache-hive-2.1.1-bin/conf/ 客户端(Master)进入...
Hive官方安装介绍地址https://cwiki.apache.org/confluence/display/Hive/AdminManual+Metastore+Administration 基础知识 Hive架构图 Hive架构.jpg Hive远程服务器模式,用于非Java客户端访问元数据库,在服务器端启动MetaStoreServer,客户端利用Thrift协议通过MetaStoreServer访问元数据库。 Hive远程服务器模式.jpg 服务器准备 ...
7.hive表存储在在HDFS中的/user/hive/warehouse中 三、slave2建立hive客户端 1.将master上的整个hive目录移至slave2上 scp -r hive slave2:/home/cms 注意要关闭防火墙 sudo ufw disable 2.修改slave2下的hive-site配置文件,内容如下: <configuration><!-- thrift://<host_name>:<port> 默认端口是9083 -...