我将JDK升级到8后无法运行累积。我已经更改了环境变量。
我可以在没有任何问题的情况下启动 hadoop,并且可以访问 http://localhost:50075 上的数据节点(我在本地计算机上运行所有内容)。
这就是我在伏隔日志中得到的
线程"gc"死亡 无法判断累积是否已初始化;无法读取 hdfs://localhost:9000/accumulo/instance_id 的实例 ID。
这是伏隔启动脚本的控制台输出
/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.
谢谢
错误消息告诉您 NameNode 处于安全模式。这通常是因为 HDFS 知道它缺少块来备份您存储在本地文件系统上的 HDFS 中的文件。请访问 http://localhost:50070 的 NameNode UI,了解 NameNode 不会自动离开安全模式的更多原因。
在 NameNode 退出安全模式后,验证 HDFS 中是否仍有目录/accumulo(例如 hdfs dfs -ls /accumulo
)。
此目录(以及下面的结构)是通过运行 accumulo init
创建的。如果该目录不存在,则表示您删除了该HDFS目录(有意或无意)。
确保您已将 HDFS 配置为写入在重新启动计算机时未擦除的目录(例如,避免/tmp
)。