还剩8页未读,继续阅读
本资源只提供10页预览,全部文档请下载后查看!喜欢就下载吧,查找使用更方便
文本内容:
标红的为自己的安装目录更改环境变量1命令行Vi/etc/profile添加#set jdkenvironmentexport JAVA_HOME=|usr/java/jdkl.
8.0181ExportCLASSPATH=.:$JAVA_HOME/lib:$JAVA_HOME/jre/lib:$CLASSPATHexport PATH=$PATH:$JAVA_HOME/bin:$JAVA_HOME/jre/bin添加完后Source/etc/profile
2.cdVi获取表描述表名describe+禁用表+,表名,如果你想要删除一个表或是修改它的设disable置,需先禁用表(重启表+表名)enable删除表表名disable+检查表是否存在+表名exists向表中插入数据表名,列簇列put rewkey,‘值’查看全表+表名scan查找+表名,+行查看一行信息get表名[列簇:列,~}+表名,scan{columns=scan{startrow=rowkey}更改目录有一个更改为自己目录java java_home=
3.Vi添加configurationpropertyname.dir/namevalue/usr/hadoop/data/value/propertypropertynamefs.defaultFS/namevaluehdfs://localhost:9000/value/property
4.Vi hdfs-site,xml.configurationpropertyname.dir/namevalue/usr/hadoop/hdfs/name/value/propertypropertyname.dir/namevalue/usr/hadoop/hdfs/data/value/propertypropertynamecation/namevaluel/value/property/configuration更改名
5.mv.templateviconfigurationpropertynamex/nameva lue yarn/va lue/property/configuration
6.Vipropertyname-services/namevaluemapreduce_shuffle/value/property/configuration(最后出错再弄增加下的)Etc/hosts ifconfiginetaddr初始化.
6./hdfs namenode-format❽)hadoop@DBLabXMU:/usr/local/hadoop,5/12/17-工-XMEQ GommQPbStor三ge;-Sforage directory/usr/1rs/name jhasbeensuccessfully formatted.L5/12/17^18:35:27naRenodee NNStorageRetenttonManager:Gotrjes withtxtd=0L5/12/1718:35:27INFO uttl,Exttlltltl[七】ngwith status”L5/12/1718:35:27INFO namenode.NameNode:~SHUTDOWN_MSC:若显示为则有错误status1先确定是否有配置错误如果没有请及时百度启动7Cd sbin检查是否成功Jps位-QI Ubuntu64VMware WorkstationII笛泣©ID□日口01Workstation▼II-主页位0Ubuntu64Xroot^函门中18:39Orefresh-namenodes.sh stop-all.cmdslaves.sh stop-all.shroot@ubuntu:/usr/hadoop/hadoop-
2.
7.3/sbin#./start-all.shThis scriptis Deprecated.Instead usestart-dfs.sh andstart-yarn.sh starting yarn daemonsstartingresourcemanager,错误:找不到或无法加载主类org.apache.hadoop.yarn.server.resourcemanager.ResourceManager•••/,,r/hadoop/hadoop-
2.
7.3/sbtn#sudo./start-all.shLibreOfficeCalc Deprecated.Instead usestart-dfs.sh andstart-yarn.shStarting namenodeson[localhost]Starting secondarynamenodes[
0.
0.
0.0]startingyarndaemonslocalhost:nodemanager runningas process
2799.Stop itfirst.root@ubuntu:/usr/hadoop/hadoop-
2.
7.3/sbtn#jps3202DataNode3747Jps3589ResourceManager3374SecondsryNameNode2799NodeManager3071NameNode^root@ubuntu:/usr/hadoop/hadoop-
2.
7.3/sbin#|要将输入定向到该虚拟机,请将鼠标指针移入其中或按Ctrl+G显示这样就可以酉己hbase配置文件conf/置自己的安装路径Cd/usr/hbsae/hbase-
1.
2.6hbaseVi conf/configurationpropertynameir/namevaluehdfs://localhost:9000/hbase/value/propertypropertynameer.distributed/nameva Iuetrue/va lue/property/configuration
2.Vi conf/export环境变量export HBASE_MANAGES_ZK=true3Vi/etc/profile#set hbasepath exportHBASE_HOME=[opt/hbase exportPATH=$PATH fopt/hbase/bin添加后启动Source/etc/profile4hbase检查5jps口I Ubuntu64位・VMwareWorkstation—□X号匚|口口0国|Workstation▼|||▼|j QH主页位0E Ubuntu64X函中18:45Ohadoop-metrics.properties kms-site.xml yarn-env.shhadoop-policy.xml log4j.properties yarn-site.xmlhdfs-stte.xml mapred-env.cmdroot@ubuntu:/usr/hadoop/hadoop-
2.
7.3/etc/hadoop#cd..root@ubuntu:/usr/hadoop/hadoop-
2.
7.3/etc#cd/usr/hbase/habse-
1.
2.6bash:cd:没有那个文件或目录/usr/hbase/habse-
1.
2.6:root@ubuntu:/usr/hbase/hbase-
1.
2.6#Isbin confhbase-webapps liblogs README.txtCHANGES.txt docsLEGAL LICENSE.txt NOTICE.txtroot@ubuntu:/usr/hbase/hbase-
1.
2.6#cd binroot@ubuntu:/usr/hbase/hbase-
1.
2.6/bin#./start-hbase.shJava HotSpotTMt64-Bit Server
8.0VM warning:ignoring optionPermSize=128m;supporwas removedin-64-Btt Servertn*1TM
8.0VM warning:ignoring optionMaxPermStze=128m;sup软件Ubuntu vedstartingregionserver,loggingnserver-ubuntu.outrootgubuntu:/usr/hbase/hbase-
1.
2.6/btn#jps4946HRegtonServer3202DataNode4789HQuorumPeer3589ResourceManager4854HMaster5002Jps3374SecondaryNameNode2799NodeManager3071NameNode口root@ubuntu:/usr/hbase/hbase-
1.
2.6/bin#要将输入定向到该虚拟机,请将鼠标指针移入其中或按齿.心口/Ctrl+G°Q这样则正确最后进入habseHbase shell基本操作Habse创建新表表名列族名create+列举表信息俵名list+。