hadoop-mapreduce-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yanbo Liang <yanboha...@gmail.com>
Subject Re: Hadoop and Hbase site xml
Date Tue, 13 Nov 2012 03:17:19 GMT
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 <dontariq@gmail.com>

> try copying files from hadoop in hbase to each other's conf directory.
> Regards,
>     Mohammad Tariq
> On Tue, Nov 13, 2012 at 5:04 AM, Mohit Anchlia <mohitanchlia@gmail.com>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?

View raw message