hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yossi Ittach" <yoss...@gmail.com>
Subject How to start a Configuration (Java API) with a specific file?
Date Mon, 10 Nov 2008 08:06:54 GMT
Hi all

I want to specify in the code which hbase-site.xml file will be used as a
source for configuration. I tried to use addResources() but it doesn't work
- the path is added , but nothing happends - it's automatically goes for the
defaults ( . Can you please advise?

This is the code:

       conf = new HBaseConfiguration();
        Path sitePath = new Path("util/hbase-site.xml");
        Path defualtPath = new Path("util/hbase-default.xml");


        try {
            admin = new HBaseAdmin(conf);
        } catch (MasterNotRunningException e) {


Vale et me ama

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message