我将JDK升级到8后无法运行accumulo。我已经更改了环境变量。
我能够在没有任何问题的情况下启动hadoop,我可以访问http://localhost:50075上的数据节点(我在我的本地计算机上运行)。
这就是我在累积日志中获得的内容
线程" gc"死了无法判断Accumulo是否已初始化;无法在hdfs:// localhost:9000 / accumulo / instance_id读取实例ID。
这是来自accumulo启动脚本的控制台输出
/usr/local/accumulo-1.6.1/bin$ ./start-all.sh
Starting monitor on localhost
WARN : Max open files on localhost is 1024, recommend 32768
Starting tablet servers .... done
Starting tablet server on localhost
WARN : Max open files on localhost is 1024, recommend 32768
2016-07-09 21:06:09,723 [fs.VolumeManagerImpl] WARN : dfs.datanode.synconclose set to false in hdfs-site.xml: data loss is possible on system reset or power loss
2016-07-09 21:06:09,726 [server.Accumulo] INFO : Attempting to talk to zookeeper
2016-07-09 21:06:09,844 [server.Accumulo] INFO : Zookeeper connected and initialized, attemping to talk to HDFS
2016-07-09 21:06:09,915 [server.Accumulo] WARN : Waiting for the NameNode to leave safemode
2016-07-09 21:06:09,915 [server.Accumulo] INFO : Backing off due to failure; current sleep period is 1.0 seconds
2016-07-09 21:06:10,917 [server.Accumulo] WARN : Waiting for the NameNode to leave safemode
2016-07-09 21:06:10,917 [server.Accumulo] INFO : Backing off due to failure; current sleep period is 2.0 seconds
2016-07-09 21:06:12,918 [server.Accumulo] WARN : Waiting for the NameNode to leave safemode
2016-07-09 21:06:12,918 [server.Accumulo] INFO : Backing off due to failure; current sleep period is 4.0 seconds
2016-07-09 21:06:16,919 [server.Accumulo] WARN : Waiting for the NameNode to leave safemode
2016-07-09 21:06:16,919 [server.Accumulo] INFO : Backing off due to failure; current sleep period is 8.0 seconds
2016-07-09 21:06:24,920 [server.Accumulo] WARN : Waiting for the NameNode to leave safemode
2016-07-09 21:06:24,921 [server.Accumulo] INFO : Backing off due to failure; current sleep period is 16.0 seconds
2016-07-09 21:06:40,923 [server.Accumulo] WARN : Waiting for the NameNode to leave safemode
2016-07-09 21:06:40,923 [server.Accumulo] INFO : Backing off due to failure; current sleep period is 32.0 seconds
2016-07-09 21:07:12,926 [server.Accumulo] WARN : Waiting for the NameNode to leave safemode
2016-07-09 21:07:12,926 [server.Accumulo] INFO : Backing off due to failure; current sleep period is 60.0 seconds
2016-07-09 21:08:12,929 [server.Accumulo] WARN : Waiting for the NameNode to leave safemode
2016-07-09 21:08:12,929 [server.Accumulo] INFO : Backing off due to failure; current sleep period is 60.0 seconds
2016-07-09 21:09:12,932 [server.Accumulo] WARN : Waiting for the NameNode to leave safemode
2016-07-09 21:09:12,932 [server.Accumulo] INFO : Backing off due to failure; current sleep period is 60.0 seconds
2016-07-09 21:10:12,935 [server.Accumulo] WARN : Waiting for the NameNode to leave safemode
2016-07-09 21:10:12,935 [server.Accumulo] INFO : Backing off due to failure; current sleep period is 60.0 seconds
2016-07-09 21:11:12,938 [server.Accumulo] WARN : Waiting for the NameNode to leave safemode
2016-07-09 21:11:12,938 [server.Accumulo] INFO : Backing off due to failure; current sleep period is 60.0 seconds
Not sure what i am doing wrong..Appreciate any help.
由于
答案 0 :(得分:1)
错误消息告诉您NameNode位于SafeMode中。这通常是因为HDFS意识到它缺少用于备份您在本地文件系统上存储在HDFS中的文件的块。请访问http://localhost:50070处的NameNode用户界面,了解更多原因,了解NameNode为何不会自动退出安全模式。
在NameNode退出安全模式后,请确认您仍然在HDFS中拥有目录/ accumulo(例如hdfs dfs -ls /accumulo
)。
通过运行accumulo init
创建此目录(以及底层结构)。如果该目录不存在,则意味着您删除了该HDFS目录(有意或无意)。
确保已将HDFS配置为写入重新启动计算机时未擦除的目录(例如,避免/tmp
)。