namenode和datanode没有在hadoop中启动

e5nszbig  于 2021-05-29  发布在  Hadoop
关注(0)|答案(0)|浏览(333)

我是hadoop map reduce的新手。启动dfs时出现以下错误。

satya@satyaPC:/usr/local/hadoop_store/hdfs/namenode$ start-all.sh

Picked up JAVA_TOOL_OPTIONS: -javaagent:/usr/share/java/jayatanaag.jar 
15/10/02 20:38:46 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable

由于此警告,名称节点和数据节点无法启动。这是jps命令的结果。

satya@satyaPC:/usr/local/hadoop_store/hdfs/namenode$ jps

Picked up JAVA_TOOL_OPTIONS: -javaagent:/usr/share/java/jayatanaag.jar 

6113 Jps

5755 ResourceManager

6077 NodeManager

5592 SecondaryNameNode

我尝试使用以下链接修复它:http://www.csrdu.org/nauman/2014/01/23/geting-started-with-hadoop-2-2-0-building/ 但这导致了以下错误。

satya@satyaPC:/usr/local/hadoop/protobuf-2.5.0$ make install

Making install in .

make[1]: Entering directory '/usr/local/hadoop/protobuf-2.5.0'

make[2]: Entering directory '/usr/local/hadoop/protobuf-2.5.0'

make[2]: Nothing to be done for 'install-exec-am'.

test -z "/usr/lib/pkgconfig" || /bin/mkdir -p "/usr/lib/pkgconfig"
 /usr/bin/install -c -m 644 protobuf.pc protobuf-lite.pc '/usr/lib/pkgconfig'

/usr/bin/install: cannot create regular file ‘/usr/lib/pkgconfig/protobuf.pc’: Permission denied

/usr/bin/install: cannot create regular file ‘/usr/lib/pkgconfig/protobuf-lite.pc’: Permission denied

Makefile:543: recipe for target 'install-pkgconfigDATA' failed

make[2]:***[install-pkgconfigDATA] Error 1

make[2]: Leaving directory '/usr/local/hadoop/protobuf-2.5.0'

Makefile:901: recipe for target 'install-am' failed

make[1]:***[install-am] Error 2

make[1]: Leaving directory '/usr/local/hadoop/protobuf-2.5.0'

Makefile:568: recipe for target 'install-recursive' failed

make:***[install-recursive] Error 1

非常感谢您对修复此错误的任何帮助。提前谢谢。

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题