2016-02-17 17 views
2

我配置了Hadoop 2.6.0(HDFS)和Zookeeper 3.4.6的Accumulo 1.7.0,所有工作都很好,但我想知道如何恢复实例。如何在Accumulo 1.7.0中恢复实例?

谢谢!

UPDATE

的问题是,我想以后恢复实例重新启动计算机或停止所有进程。我把日志更好地理解:

[email protected]:/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 

[email protected]:/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| 

回答

2

感谢您的帮助,问题是,我需要设置在快照存储饲养员的目录,因为默认情况下它被保存在“/ TMP”。我修改文件zoo.cfg并为“dataDir”设置一个新目录。

2

它应该是为准备进入bin目录并运行相应的标记脚本一样简单。

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

然后重新开始:

./start-all.sh 
+0

注意的一点是,如果你删除Accumulo HDFS目录,你需要重新开始Accumulo前重新运行'accumulo init'。 – elserj

+0

@elserj你的理由,但我的问题是,当我重新启动我的电脑。我需要重新启动实例,因为当我运行'accumulo init',它发送“instance.volumes”的错误@WilD你别离开 – WilD

+0

不一定需要重新启动并删除hdfs目录,只需重新启动您的PC。如果您不想继续处于关闭计算机时留下的状态,则只需要这样做。 – Christopher