在ubuntu中访问浏览器上的hadoop

时间:2016-01-03 11:09:53

标签: ubuntu hadoop

我在伪分布式模式下对Hadoop安装的参考是hadoop_environment_setup。我正在使用Hadoop 2.7.0和Ubuntu 14.04.2 LTS。 我可以通过http://localhost:8088/cluster/nodes验证群集的所有应用程序,如下面的screenhost所示。

enter image description here

我的主机文件,即/ etc / hosts包含以下映射:

127.0.0.1   localhost
127.0.1.1   subash-HP-Pavilion-dv4-Notebook-PC

现在,当我尝试通过http://localhost:50070/在浏览器上访问Hadoop时,我得到的网页不可用消息。

现在正在运行

start-dfs.sh

我收到以下错误:

WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
    Incorrect configuration: namenode address dfs.namenode.servicerpc-address or dfs.namenode.rpc-address is not configured.
    Starting namenodes on []

然后我按如下方式输入hadoop密码:

hadoop@localhost's password: 
localhost: starting namenode, logging to /home/hadoop/hadoop/logs/hadoop-hadoop-namenode-subash-HP-Pavilion-dv4-Notebook-PC.out
hadoop@localhost's password: 
localhost: starting datanode, logging to /home/hadoop/hadoop/logs/hadoop-hadoop-datanode-subash-HP-Pavilion-dv4-Notebook-PC.out
Starting secondary namenodes [0.0.0.0]
hadoop@0.0.0.0's password:

输入密码后,会抛出以下错误:

0.0.0.0: starting secondarynamenode, logging to /home/hadoop/hadoop/logs/hadoop-hadoop-secondarynamenode-subash-HP-Pavilion-dv4-Notebook-PC.out
0.0.0.0: Exception in thread "main" java.lang.IllegalArgumentException: Illegal character in scheme name at index 0:  hdfs://localhost:9000 
0.0.0.0:    at java.net.URI.create(URI.java:852)
0.0.0.0:    at org.apache.hadoop.fs.FileSystem.getDefaultUri(FileSystem.java:178)
0.0.0.0:    at org.apache.hadoop.hdfs.server.namenode.NameNode.getAddress(NameNode.java:460)
0.0.0.0:    at org.apache.hadoop.hdfs.server.namenode.NameNode.getServiceAddress(NameNode.java:454)
0.0.0.0:    at org.apache.hadoop.hdfs.server.namenode.SecondaryNameNode.initialize(SecondaryNameNode.java:229)
0.0.0.0:    at org.apache.hadoop.hdfs.server.namenode.SecondaryNameNode.<init>(SecondaryNameNode.java:192)
0.0.0.0:    at org.apache.hadoop.hdfs.server.namenode.SecondaryNameNode.main(SecondaryNameNode.java:671)
0.0.0.0: Caused by: java.net.URISyntaxException: Illegal character in scheme name at index 0:  hdfs://localhost:9000 
0.0.0.0:    at java.net.URI$Parser.fail(URI.java:2848)
16/01/03 15:43:22 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable

0 个答案:

没有答案