I am not an HBase expert. How does HBase find the hbase-site.xml? Does it
simply search through the classpath?

If it uses the classpath, can you see what hbase-site.xml is used?
  - In your user code, you can do a
getClass().getClassloader().gerResource("hbase-site.xml") and see where it
is?
  - Can you do the same with
ClassLoader.getSystemClassLoader().getResource("hbase-site.xml") and see if
that returns something different?


Thanks,
Stephan


On Thu, May 28, 2015 at 10:14 AM, Hilmi Yildirim <hilmi.yildi...@neofonie.de
> wrote:

> Hi,
> I used release-0.8.1for Hadoop 2 to read from HBase. For that I placed my
> hbase-site.xml with the correct configurations into the resource folder.
> When I start the job locally then the job uses the config inside the
> hbase-site.xml and it works great. When I want to run the job on a cluster
> then the job uses the default hbase config instead of the config defined in
> the hbase-site.xml. The hbase-site.xml is included in the fat jar. To start
> the job I use the web interace.
>
> Best Regards,
>
> --
> --
> Hilmi Yildirim
> Software Developer R&D
>
> T: +49 30 24627-281
> hilmi.yildi...@neofonie.de
>
> http://www.neofonie.de
>
> Besuchen Sie den Neo Tech Blog für Anwender:
> http://blog.neofonie.de/
>
> Folgen Sie uns:
> https://plus.google.com/+neofonie
> http://www.linkedin.com/company/neofonie-gmbh
> https://www.xing.com/companies/neofoniegmbh
>
> Neofonie GmbH | Robert-Koch-Platz 4 | 10115 Berlin
> Handelsregister Berlin-Charlottenburg: HRB 67460
> Geschäftsführung: Thomas Kitlitschko
>
>

Reply via email to