在我将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.谢谢
发布于 2016-07-11 09:14:40
错误消息告诉您NameNode在SafeMode中。这通常是因为HDFS知道它缺少数据块来备份您在本地文件系统上存储在HDFS中的文件。访问http://localhost:50070上的NameNode UI,了解NameNode不会自动退出安全模式的更多原因。
将NameNode从安全模式中取出后,验证HDFS中是否仍有目录/accumulo (例如hdfs dfs -ls /accumulo)。
这个目录(以及下面的结构)是通过运行accumulo init创建的。如果该目录不存在,这意味着您删除了该HDFS目录(有意或无意)。
确保您的HDFS配置为写入一个在重启机器时不会被擦除的目录(例如避免/tmp)。
https://stackoverflow.com/questions/38287729
复制相似问题