hdfs - 如何在 Accumulo 1.7.0 中恢复实例?

标签 hdfs apache-zookeeper accumulo

我使用 Hadoop 2.6.0 (HDFS) 和 Zookeeper 3.4.6 配置了 Accumulo 1.7.0,一切正常,但我想知道如何恢复实例。

谢谢!!!

更新

问题是我想在重新启动电脑或停止所有进程后恢复实例。我把日志放出来以便更好地理解:

hduser@master:/opt/accumulo-1.7.0-bin/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-02-23 11:46:46,089 [fs.VolumeManagerImpl] WARN : dfs.datanode.synconclose set to false in hdfs-site.xml: data loss is possible on hard system reset or power loss
2016-02-23 11:46:46,092 [server.Accumulo] INFO : Attempting to talk to zookeeper
2016-02-23 11:46:46,242 [server.Accumulo] INFO : Waiting for accumulo to be initialized
2016-02-23 11:46:47,243 [server.Accumulo] INFO : Waiting for accumulo to be initialized
2016-02-23 11:46:48,246 [server.Accumulo] INFO : Waiting for accumulo to be initialized

hduser@master:/opt/accumulo-1.7.0-bin/bin$ ./accumulo init
2016-02-22 16:10:46,410 [fs.VolumeManagerImpl] WARN : dfs.datanode.synconclose set to false in hdfs-site.xml: data loss is possible on hard system reset or power loss
2016-02-22 16:10:46,411 [init.Initialize] INFO : Hadoop Filesystem is hdfs://master:9000
2016-02-22 16:10:46,412 [init.Initialize] INFO : Accumulo data dirs are [hdfs://master:9000/accumulo]
2016-02-22 16:10:46,412 [init.Initialize] INFO : Zookeeper server is localhost:2181
2016-02-22 16:10:46,412 [init.Initialize] INFO : Checking if Zookeeper is available. If this hangs, then you need to make sure zookeeper is running
2016-02-22 16:10:46,606 [init.Initialize] ERROR: FATAL It appears the directories [hdfs://master:9000/accumulo] were previously initialized.
2016-02-22 16:10:46,606 [init.Initialize] ERROR: FATAL: Change the property instance.volumes to use different filesystems,
2016-02-22 16:10:46,606 [init.Initialize] ERROR: FATAL: or change the property instance.dfs.dir to use a different directory.
2016-02-22 16:10:46,606 [init.Initialize] ERROR: FATAL: The current value of instance.dfs.uri is ||
2016-02-22 16:10:46,606 [init.Initialize] ERROR: FATAL: The current value of instance.dfs.dir is |/accumulo|
2016-02-22 16:10:46,606 [init.Initialize] ERROR: FATAL: The current value of instance.volumes is |hdfs://master:9000/accumulo|

最佳答案

它应该像进入 bin 目录并运行适当的标记脚本一样简单。

cd accumulo-1.7.0/bin
./stop-all.sh

然后重新开始:

./start-all.sh

关于hdfs - 如何在 Accumulo 1.7.0 中恢复实例?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35462341/

相关文章:

hadoop - 群集创建-AWS-EMR-*:9000出现连接异常失败:java.net.ConnectException:连接被拒绝;

hadoop - Log4j 不写入 HDFS/Log4j.properties

apache-kafka - 将 Confluence 与现有的三个 kafka 代理连接起来

java - Zookeeper运行在两个节点上

java - GeoMesa Native API (Accumulo) - 多边形相交过滤器 : missing "the_geom" in SimpleFeature

hadoop - 更改 Hadoop 中现有文件的 block 大小

Hadoop 在运行 terasort 时崩溃了?

java - Apache Spark : reduceByKey function stops Java-application

hadoop - 在名称节点崩溃损坏根 block 后重建 Accumulo

java - 如何在 Accumulo 中获取数据库查询的计数