spring hbase属性:在哪里指定apache config timeout?

时间:2015-08-11 10:46:33

标签: java spring configuration hbase

我在哪里设置' hbase.client.retries.number'等属性。使用hbase.version时:1.1.1

使用xml配置spring。在我的xml中:

<context:property-placeholder location="classpath:webr/hbase.properties" />

    <context:component-scan base-package="com.mine.xx" />

    <hdp:configuration id="hadoopConfiguration">
        fs.defaultFS=file:///usr/local/XX
    </hdp:configuration>

    <!-- configuration-ref="hadoopConfiguration" -->
    <hdp:hbase-configuration configuration-ref="hadoopConfiguration"
        zk-quorum="${hbase.zk.host}" zk-port="${hbase.zk.port}" />

但是当我设置(在webr / hbase.properties中)时:

hbase.client.retries.number=0
zookeeper.session.timeout=38000
zookeeper.recovery.retry=0
hbase.rpc.timeout=29000
zookeeper.recovery.retry=0

发送扫描后,它们不会被拾取(程序挂起超过3分钟)。

hadoop安装在我的网上。

0 个答案:

没有答案