hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stuti Awasthi <stutiawas...@hcl.com>
Subject Issues in running CopyTable from java class
Date Wed, 14 Sep 2011 08:10:11 GMT
Hi ,

I was trying to call CopyTable from Java Class but facing some issues. Code is like :

public static void main(String[] args) {
            Configuration hbaseConfig = HBaseConfiguration.create();
            hbaseConfig.set("hbase.zookeeper.quorum", "master");
            hbaseConfig.set("hbase.zookeeper.property.clientPort", "2181");
            String arg[]= {"--starttime=1315916685308","--endtime=1315916685413","--new.name=backup","--peer.adr=master:2181:/hbase","testArchive"};
            try {
            CopyTable.createSubmittableJob(hbaseConfig, arg);
            } catch (Exception e) {

I created the executable jar but when I run it the only output I am getting is:

11/09/14 11:40:09 INFO jvm.JvmMetrics: Initializing JVM Metrics with processName=JobTracker,

No MR job is running properly. I am sure I am missing something. Any pointers will be useful.
I also tried this running by CLI , and it worked fine.

Thanks & Regards


The contents of this e-mail and any attachment(s) are confidential and intended for the named
recipient(s) only.
It shall not attach any liability on the originator or HCL or its affiliates. Any views or
opinions presented in
this email are solely those of the author and may not necessarily reflect the opinions of
HCL or its affiliates.
Any form of reproduction, dissemination, copying, disclosure, modification, distribution and
/ or publication of
this message without the prior written consent of the author of this e-mail is strictly prohibited.
If you have
received this email in error please delete it and notify the sender immediately. Before opening
any mail and
attachments please check them for viruses and defect.


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