连接hive步骤 su - hadoop $HADOOP_HOME/sbin/start-dfs.sh $HADOOP_HOME/sbin/start-yarn.sh cd /export/server/hive/ nohup bin/hive --service metastore>> logs/metastore.log 2>&1 & nohup bin/hive --service hiveserver2 >> logs/hiveserver2.log 2>&1 & hdfs dfsadmin -safemode leave bin/hive
export JAVA_HOME=/export/server/jdk1.8.0_361 export HBASE_CLASSPATH=/export/server/hadoop-3.3.4/etc/hadoop scp -r apache-zookeeper-3.8.4-bin root@node2:/export/server scp -r apache-zookeeper-3.8.4-bin root@node3:/export/server scp -r hbase-2.5.10 root@node2:/export/server scp -r hbase-2.5.10 root@node3:/export/server ln -s /export/server/hbase-2.5.10 hbase ./zkServer.sh start //启动zookeeper start-hbase.sh //启动hbase export JAVA_HOME=/opt/jdk1.8.0_162 export HBASE_DISABLE_HADOOP_CLASSPATH_LOOKUP=true server.1=node1:2888:3888 server.2=node2:2888:3888 server.3=node3:2888:3888 rm -rf hbase-2.5.10 rm -rf hbase cd /export/server/zookeeper/bin vim /etc/profile export HBASE_HOME=/export/server/hbase export PATH=$PATH:/export/server/hbase/bin source /etc/profile cd /export/server/hbase/bin
vim hbase-env.sh export JAVA_HOME=/export/server/jdk export HBASE_CLASSPATH=/export/server/hadoop/etc/hadoop export HBASE_MANAGES_ZK=false export HBASE_DISABLE_HADOOP_CLASSPATH_LOOKUP=true vim hbase-site.xml <property> <name>hbase.rootdir</name> <value>hdfs://node1:8020/hbase </value> #hbase写入数据的目录 </property> <property> <name>hbase.cluster.distributed</name> <value>true</value> </property> <property> <name>hbase.zookeeper.quorum</name> <!-- list of zookooper --> <value>node1,node2,node3</value> </property> <property><!--zookooper配置、日志等的存储位置 --> <name>hbase.zookeeper.property.dataDir</name> <value>/export/server/zookeeper/zookeeper_data</value> </property> <property> <name>hbase.unsafe.stream.capability.enforce</name> <value>false</value> </property> cd /export/server/hbase/bin cd hbase shell 我的姓名是胡翔,性别男,年龄21,学号20224006,班级信2205-1 create 'shujuku', 'info' put 'shujuku', 'row1', 'info:Sname', '胡翔' put 'shujuku', 'row1', 'info:Ssex', '男' put 'shujuku', 'row1', 'info:Sage', '21' put 'shujuku', 'row1', 'info:Sid', '20224006' put 'shujuku', 'row1', 'info:Sclass', '信2205-1' vim regionservers node1 node2 node3
标签:bin,shujuku,zookeeper,server,export,一些,操作,Hbase,hbase From: https://www.cnblogs.com/bzsc/p/18445167