2014-02-14 65 views
0

我最近开始研究大数据 - Hadoop技术。我一直在研究Hbase命令。我开始研究cloudera virtualbox平台。我无法执行“快照”命令。大数据 - Hbase

hbase> snapshot 'users','users_snapshot' 

我得到一个错误作为

ERROR: java.io.IOExecption: java.lang.unsupportedOperationException:
To use snapshots, you must add to the hbase-site.xml of the Hbase Master: 'hbase.snapshot.enabled' property with value 'true'

事实上,我已经添加下列行

<property> 
    <name>hbase.snapshot.enabled</name> 
    <value>true</value> 
</property> 
中在/ etc/HBase的/ conf文件夹中获得的HBase的-site.xml中

并保存。 我已经在cloudera管理器中重新启动了hbase实例。但仍然有同样的错误。当我查看hbase-master时,它并未在hbase配置文件中显示此属性。请任何机构可以帮助我解决这个问题。

由于 BIPS

+0

请任何机构告诉我“快照”命令如何在Hbase(大数据 - hadoop)中工作。我需要知道运行此命令所需的配置......谢谢 –

回答

0

在CDH,HBase的配置的配置文件的情况下, 'HBase的-site.xml中' 在 '等/ HBase的/ CONF' 不使用HBase的服务器进程,而是由客户端的HBase像HBase的壳。从Cloudera Manager Manual

Administrators are sometimes surprised that modifying /etc/hadoop/conf and then restarting HDFS has no effect. That is because service instances started by Cloudera Manager do not read configurations from the default locations. To use HDFS as as an example, when not managed by Cloudera Manager, there would usually be one HDFS configuration configuration per host, located at /etc/hadoop/conf/hdfs-site.xml.Server-side daemons and clients running on the same host would all use that same configuration.

Cloudera Manager distinguishes between server and client configuration. In the case of HDFS , the file /etc/hadoop/conf/hdfs-site.xml contains only configuration relevant to an HDFS client. That is, by default,if you run a program that needs to communicate with Hadoop , it will get the addresses of the NameNode and JobTracker, and other important configurations, from that directory. A similar approach is taken for /etc/hbase/conf and /etc/hive/conf

由于您使用的Cloudera VM,我建议你通过使用“Cloudera的管理器”来修改HBase的相应的配置。这已经被讨论here