posts - 126,comments - 1,trackbacks - 0

1.运行环境变量,获取keytab票据:

source component_env
klist -kt ***.keytab
kinit -kt ********

2.登陆过程报错:

①.bomc@HN2-103-H13-02Rs-BDI2:~> cd hadoopclient/
-bash: cd: hadoopclient/: Permission denied
报错原因:权限问题
解决办法:切换到root用户:chown -R *:* hadoopclient/


②.bomc@HN2-103-H13-02Rs-BDI2:~/hadoopclient> kinit -kt ***********
kinit: Resource temporarily unavailable while getting initial credentials

报错原因:一般来说是网络问题,检查/etc/hosts文件,没问题后,找到环境变量中用到的文件是生产环境的信息,
解决办法:我从其他机器中scp了一个文件过来,重新source了一下环境变量


③.bomc@HN2-103-H13-02Rs-BDI2:~/hadoopclient> cd hadoop/bin/
bomc@HN2-103-H13-02Rs-BDI2:~/hadoopclient/hadoop/bin> ./hadoop fs -ls /
./hadoop: line 144: /usr/jdk64/jdk1.7.0_67/bin/java: No such file or directory
./hadoop: line 144: exec: /usr/jdk64/jdk1.7.0_67/bin/java: cannot execute: No such file or directory
bomc@HN2-103-H13-02Rs-BDI2:~/hadoopclient/hadoop/bin> 

报错原因:没有找到jdk文件
解决办法:从其他机器中scp了一个文件过来,scp -r jdk64/ root@10.243.160.101:/usr/


④.bomc@HN2-103-H13-02Rs-BDI2:~/hadoopclient/hadoop/bin> ./hadoop fs -ls /
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=512m; support was removed in 8.0
18/08/24 16:24:13 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
18/08/24 16:24:14 WARN hdfs.DFSUtil: Namenode for hnbigdata remains unresolved for ID nn1.  Check your hdfs-site.xml file to ensure namenodes are configured properly.
18/08/24 16:24:14 WARN hdfs.DFSUtil: Namenode for hnbigdata remains unresolved for ID nn2.  Check your hdfs-site.xml file to ensure namenodes are configured properly.
-ls: java.net.UnknownHostException: hnbigdata001
Usage: hadoop fs [generic options] -ls [-d] [-h] [-R] [<path> ...]


报错原因:xml文件用的生产环境信息,
解决办法:重新上传文件

 

posted on 2018-09-19 17:12 Tomatoes 阅读(...) 评论(...) 编辑 收藏