-Re: Hadoop and Hbase site xml
Yanbo Liang 2012-11-13, 09:18
It's OK, Hadoop does not distinguish different configuration files of NN,
The distinct configuration of different role is identified by the prefix of
parameters such as dfs.namenode.*** and dfs.datanode.***.
2012/11/13 Mohit Anchlia <[EMAIL PROTECTED]>
> I already have it working using the xml files. I was trying to see what
> are the parameters that I need to pass to the conf object. Should I take
> all the parameters in the xml file and use it in the conf file?
> On Mon, Nov 12, 2012 at 7:17 PM, Yanbo Liang <[EMAIL PROTECTED]> wrote:
>> There are two candidate:
>> 1) You need to copy your Hadoop/HBase configuration such as
>> common-site.xml, hdfs-site.xml, or *hbase-site.xml *file from "etc" or
>> "conf" subdirectory of Hadoop/HBase installation directory into the Java
>> project directory. Then the configuration of Hadoop/HBase will be auto
>> loaded and the client can use directly.
>> 2) Explicit set the configuration at your client code, such as:
>> conf = new Configuration();
>> You can reference the following link:
>> 2012/11/13 Mohammad Tariq <[EMAIL PROTECTED]>
>>> try copying files from hadoop in hbase to each other's conf directory.
>>> Mohammad Tariq
>>> On Tue, Nov 13, 2012 at 5:04 AM, Mohit Anchlia <[EMAIL PROTECTED]>wrote:
>>>> Is it necessary to add hadoop and hbase site xmls in the classpath of
>>>> the java client? Is there any other way we can configure it using general
>>>> properties file using key=value?