[jira] [Updated] (HBASE-15216) Canary does not accept few client config param from commandline( it should only be present in hbase-site.xml)

2016-02-08 Thread Vishal Khandelwal (JIRA)

 [ 
https://issues.apache.org/jira/browse/HBASE-15216?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Vishal Khandelwal updated HBASE-15216:
--
Attachment: (was: HBASE-15229.v3.patch)

> Canary does not accept few client config param from commandline( it should 
> only be present in hbase-site.xml)
> -
>
> Key: HBASE-15216
> URL: https://issues.apache.org/jira/browse/HBASE-15216
> Project: HBase
>  Issue Type: Bug
>  Components: canary
>Affects Versions: 0.98.16
>Reporter: Vishal Khandelwal
>Assignee: Vishal Khandelwal
> Attachments: HBASE-15216.v1.patch
>
>
> At present there are few configs which needs to be present in  hbase-site or 
> default xml for it to work. following are the list.
> hbase.canary.threads.num
> hbase.canary.sink.class
> hbase.client.keytab.file
> hbase.client.kerberos.principal
> Execution in secure expects keytab and princ to be present 
> {noformat}
> 2016-02-05 05:58:44,024 ERROR [main] hbase.AuthUtil - Error while trying to 
> perform the initial login: Running in secure mode, but config doesn't have a 
> keytab
> java.io.IOException: Running in secure mode, but config doesn't have a keytab
>   at org.apache.hadoop.security.SecurityUtil.login(SecurityUtil.java:236)
>   at 
> org.apache.hadoop.hbase.security.User$SecureHadoopUser.login(User.java:392)
>   at org.apache.hadoop.hbase.security.User.login(User.java:259)
>   at 
> org.apache.hadoop.hbase.security.UserProvider.login(UserProvider.java:116)
>   at org.apache.hadoop.hbase.AuthUtil.launchAuthChore(AuthUtil.java:64)
>   at org.apache.hadoop.hbase.tool.Canary.main(Canary.java:1146)
> Exception in thread "main" java.io.IOException: Running in secure mode, but 
> config doesn't have a keytab
>   at org.apache.hadoop.security.SecurityUtil.login(SecurityUtil.java:236)
>   at 
> org.apache.hadoop.hbase.security.User$SecureHadoopUser.login(User.java:392)
>   at org.apache.hadoop.hbase.security.User.login(User.java:259)
>   at 
> org.apache.hadoop.hbase.security.UserProvider.login(UserProvider.java:116)
>   at org.apache.hadoop.hbase.AuthUtil.launchAuthChore(AuthUtil.java:64)
>   at org.apache.hadoop.hbase.tool.Canary.main(Canary.java:1146)
> {noformat}
> {code}
> public static void main(String[] args) throws Exception {
> final Configuration conf = HBaseConfiguration.create();
> AuthUtil.launchAuthChore(conf);
> int numThreads = conf.getInt("hbase.canary.threads.num", MAX_THREADS_NUM);
> ExecutorService executor = new ScheduledThreadPoolExecutor(numThreads);
> Class sinkClass =
> conf.getClass("hbase.canary.sink.class", StdOutSink.class, 
> Sink.class);
> Sink sink = ReflectionUtils.newInstance(sinkClass);
> int exitCode = ToolRunner.run(conf, new Canary(executor, sink), args);
> executor.shutdown();
> System.exit(exitCode);
>   }
> {code}
> In main class these params should be parsed and updated. else for any change 
> to these value hbase-stie.xml needs to be updated 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (HBASE-15216) Canary does not accept few client config param from commandline( it should only be present in hbase-site.xml)

2016-02-08 Thread Vishal Khandelwal (JIRA)

 [ 
https://issues.apache.org/jira/browse/HBASE-15216?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Vishal Khandelwal updated HBASE-15216:
--
Attachment: (was: HBASE-15216.v2.patch)

> Canary does not accept few client config param from commandline( it should 
> only be present in hbase-site.xml)
> -
>
> Key: HBASE-15216
> URL: https://issues.apache.org/jira/browse/HBASE-15216
> Project: HBase
>  Issue Type: Bug
>  Components: canary
>Affects Versions: 0.98.16
>Reporter: Vishal Khandelwal
>Assignee: Vishal Khandelwal
> Attachments: HBASE-15216.v1.patch
>
>
> At present there are few configs which needs to be present in  hbase-site or 
> default xml for it to work. following are the list.
> hbase.canary.threads.num
> hbase.canary.sink.class
> hbase.client.keytab.file
> hbase.client.kerberos.principal
> Execution in secure expects keytab and princ to be present 
> {noformat}
> 2016-02-05 05:58:44,024 ERROR [main] hbase.AuthUtil - Error while trying to 
> perform the initial login: Running in secure mode, but config doesn't have a 
> keytab
> java.io.IOException: Running in secure mode, but config doesn't have a keytab
>   at org.apache.hadoop.security.SecurityUtil.login(SecurityUtil.java:236)
>   at 
> org.apache.hadoop.hbase.security.User$SecureHadoopUser.login(User.java:392)
>   at org.apache.hadoop.hbase.security.User.login(User.java:259)
>   at 
> org.apache.hadoop.hbase.security.UserProvider.login(UserProvider.java:116)
>   at org.apache.hadoop.hbase.AuthUtil.launchAuthChore(AuthUtil.java:64)
>   at org.apache.hadoop.hbase.tool.Canary.main(Canary.java:1146)
> Exception in thread "main" java.io.IOException: Running in secure mode, but 
> config doesn't have a keytab
>   at org.apache.hadoop.security.SecurityUtil.login(SecurityUtil.java:236)
>   at 
> org.apache.hadoop.hbase.security.User$SecureHadoopUser.login(User.java:392)
>   at org.apache.hadoop.hbase.security.User.login(User.java:259)
>   at 
> org.apache.hadoop.hbase.security.UserProvider.login(UserProvider.java:116)
>   at org.apache.hadoop.hbase.AuthUtil.launchAuthChore(AuthUtil.java:64)
>   at org.apache.hadoop.hbase.tool.Canary.main(Canary.java:1146)
> {noformat}
> {code}
> public static void main(String[] args) throws Exception {
> final Configuration conf = HBaseConfiguration.create();
> AuthUtil.launchAuthChore(conf);
> int numThreads = conf.getInt("hbase.canary.threads.num", MAX_THREADS_NUM);
> ExecutorService executor = new ScheduledThreadPoolExecutor(numThreads);
> Class sinkClass =
> conf.getClass("hbase.canary.sink.class", StdOutSink.class, 
> Sink.class);
> Sink sink = ReflectionUtils.newInstance(sinkClass);
> int exitCode = ToolRunner.run(conf, new Canary(executor, sink), args);
> executor.shutdown();
> System.exit(exitCode);
>   }
> {code}
> In main class these params should be parsed and updated. else for any change 
> to these value hbase-stie.xml needs to be updated 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (HBASE-15216) Canary does not accept few client config param from commandline( it should only be present in hbase-site.xml)

2016-02-08 Thread Vishal Khandelwal (JIRA)

 [ 
https://issues.apache.org/jira/browse/HBASE-15216?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Vishal Khandelwal updated HBASE-15216:
--
Attachment: HBASE-15216.v2.patch

> Canary does not accept few client config param from commandline( it should 
> only be present in hbase-site.xml)
> -
>
> Key: HBASE-15216
> URL: https://issues.apache.org/jira/browse/HBASE-15216
> Project: HBase
>  Issue Type: Bug
>  Components: canary
>Affects Versions: 0.98.16
>Reporter: Vishal Khandelwal
>Assignee: Vishal Khandelwal
> Attachments: HBASE-15216.v1.patch, HBASE-15216.v2.patch
>
>
> At present there are few configs which needs to be present in  hbase-site or 
> default xml for it to work. following are the list.
> hbase.canary.threads.num
> hbase.canary.sink.class
> hbase.client.keytab.file
> hbase.client.kerberos.principal
> Execution in secure expects keytab and princ to be present 
> {noformat}
> 2016-02-05 05:58:44,024 ERROR [main] hbase.AuthUtil - Error while trying to 
> perform the initial login: Running in secure mode, but config doesn't have a 
> keytab
> java.io.IOException: Running in secure mode, but config doesn't have a keytab
>   at org.apache.hadoop.security.SecurityUtil.login(SecurityUtil.java:236)
>   at 
> org.apache.hadoop.hbase.security.User$SecureHadoopUser.login(User.java:392)
>   at org.apache.hadoop.hbase.security.User.login(User.java:259)
>   at 
> org.apache.hadoop.hbase.security.UserProvider.login(UserProvider.java:116)
>   at org.apache.hadoop.hbase.AuthUtil.launchAuthChore(AuthUtil.java:64)
>   at org.apache.hadoop.hbase.tool.Canary.main(Canary.java:1146)
> Exception in thread "main" java.io.IOException: Running in secure mode, but 
> config doesn't have a keytab
>   at org.apache.hadoop.security.SecurityUtil.login(SecurityUtil.java:236)
>   at 
> org.apache.hadoop.hbase.security.User$SecureHadoopUser.login(User.java:392)
>   at org.apache.hadoop.hbase.security.User.login(User.java:259)
>   at 
> org.apache.hadoop.hbase.security.UserProvider.login(UserProvider.java:116)
>   at org.apache.hadoop.hbase.AuthUtil.launchAuthChore(AuthUtil.java:64)
>   at org.apache.hadoop.hbase.tool.Canary.main(Canary.java:1146)
> {noformat}
> {code}
> public static void main(String[] args) throws Exception {
> final Configuration conf = HBaseConfiguration.create();
> AuthUtil.launchAuthChore(conf);
> int numThreads = conf.getInt("hbase.canary.threads.num", MAX_THREADS_NUM);
> ExecutorService executor = new ScheduledThreadPoolExecutor(numThreads);
> Class sinkClass =
> conf.getClass("hbase.canary.sink.class", StdOutSink.class, 
> Sink.class);
> Sink sink = ReflectionUtils.newInstance(sinkClass);
> int exitCode = ToolRunner.run(conf, new Canary(executor, sink), args);
> executor.shutdown();
> System.exit(exitCode);
>   }
> {code}
> In main class these params should be parsed and updated. else for any change 
> to these value hbase-stie.xml needs to be updated 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (HBASE-15216) Canary does not accept few client config param from commandline( it should only be present in hbase-site.xml)

2016-02-08 Thread Vishal Khandelwal (JIRA)

 [ 
https://issues.apache.org/jira/browse/HBASE-15216?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Vishal Khandelwal updated HBASE-15216:
--
Attachment: HBASE-15216.v2.patch

> Canary does not accept few client config param from commandline( it should 
> only be present in hbase-site.xml)
> -
>
> Key: HBASE-15216
> URL: https://issues.apache.org/jira/browse/HBASE-15216
> Project: HBase
>  Issue Type: Bug
>  Components: canary
>Affects Versions: 0.98.16
>Reporter: Vishal Khandelwal
>Assignee: Vishal Khandelwal
> Attachments: HBASE-15216.v1.patch, HBASE-15216.v2.patch
>
>
> At present there are few configs which needs to be present in  hbase-site or 
> default xml for it to work. following are the list.
> hbase.canary.threads.num
> hbase.canary.sink.class
> hbase.client.keytab.file
> hbase.client.kerberos.principal
> Execution in secure expects keytab and princ to be present 
> {noformat}
> 2016-02-05 05:58:44,024 ERROR [main] hbase.AuthUtil - Error while trying to 
> perform the initial login: Running in secure mode, but config doesn't have a 
> keytab
> java.io.IOException: Running in secure mode, but config doesn't have a keytab
>   at org.apache.hadoop.security.SecurityUtil.login(SecurityUtil.java:236)
>   at 
> org.apache.hadoop.hbase.security.User$SecureHadoopUser.login(User.java:392)
>   at org.apache.hadoop.hbase.security.User.login(User.java:259)
>   at 
> org.apache.hadoop.hbase.security.UserProvider.login(UserProvider.java:116)
>   at org.apache.hadoop.hbase.AuthUtil.launchAuthChore(AuthUtil.java:64)
>   at org.apache.hadoop.hbase.tool.Canary.main(Canary.java:1146)
> Exception in thread "main" java.io.IOException: Running in secure mode, but 
> config doesn't have a keytab
>   at org.apache.hadoop.security.SecurityUtil.login(SecurityUtil.java:236)
>   at 
> org.apache.hadoop.hbase.security.User$SecureHadoopUser.login(User.java:392)
>   at org.apache.hadoop.hbase.security.User.login(User.java:259)
>   at 
> org.apache.hadoop.hbase.security.UserProvider.login(UserProvider.java:116)
>   at org.apache.hadoop.hbase.AuthUtil.launchAuthChore(AuthUtil.java:64)
>   at org.apache.hadoop.hbase.tool.Canary.main(Canary.java:1146)
> {noformat}
> {code}
> public static void main(String[] args) throws Exception {
> final Configuration conf = HBaseConfiguration.create();
> AuthUtil.launchAuthChore(conf);
> int numThreads = conf.getInt("hbase.canary.threads.num", MAX_THREADS_NUM);
> ExecutorService executor = new ScheduledThreadPoolExecutor(numThreads);
> Class sinkClass =
> conf.getClass("hbase.canary.sink.class", StdOutSink.class, 
> Sink.class);
> Sink sink = ReflectionUtils.newInstance(sinkClass);
> int exitCode = ToolRunner.run(conf, new Canary(executor, sink), args);
> executor.shutdown();
> System.exit(exitCode);
>   }
> {code}
> In main class these params should be parsed and updated. else for any change 
> to these value hbase-stie.xml needs to be updated 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (HBASE-15216) Canary does not accept few client config param from commandline( it should only be present in hbase-site.xml)

2016-02-08 Thread Vishal Khandelwal (JIRA)

 [ 
https://issues.apache.org/jira/browse/HBASE-15216?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Vishal Khandelwal updated HBASE-15216:
--
Attachment: HBASE-15229.v3.patch

> Canary does not accept few client config param from commandline( it should 
> only be present in hbase-site.xml)
> -
>
> Key: HBASE-15216
> URL: https://issues.apache.org/jira/browse/HBASE-15216
> Project: HBase
>  Issue Type: Bug
>  Components: canary
>Affects Versions: 0.98.16
>Reporter: Vishal Khandelwal
>Assignee: Vishal Khandelwal
> Attachments: HBASE-15216.v1.patch, HBASE-15216.v2.patch, 
> HBASE-15229.v3.patch
>
>
> At present there are few configs which needs to be present in  hbase-site or 
> default xml for it to work. following are the list.
> hbase.canary.threads.num
> hbase.canary.sink.class
> hbase.client.keytab.file
> hbase.client.kerberos.principal
> Execution in secure expects keytab and princ to be present 
> {noformat}
> 2016-02-05 05:58:44,024 ERROR [main] hbase.AuthUtil - Error while trying to 
> perform the initial login: Running in secure mode, but config doesn't have a 
> keytab
> java.io.IOException: Running in secure mode, but config doesn't have a keytab
>   at org.apache.hadoop.security.SecurityUtil.login(SecurityUtil.java:236)
>   at 
> org.apache.hadoop.hbase.security.User$SecureHadoopUser.login(User.java:392)
>   at org.apache.hadoop.hbase.security.User.login(User.java:259)
>   at 
> org.apache.hadoop.hbase.security.UserProvider.login(UserProvider.java:116)
>   at org.apache.hadoop.hbase.AuthUtil.launchAuthChore(AuthUtil.java:64)
>   at org.apache.hadoop.hbase.tool.Canary.main(Canary.java:1146)
> Exception in thread "main" java.io.IOException: Running in secure mode, but 
> config doesn't have a keytab
>   at org.apache.hadoop.security.SecurityUtil.login(SecurityUtil.java:236)
>   at 
> org.apache.hadoop.hbase.security.User$SecureHadoopUser.login(User.java:392)
>   at org.apache.hadoop.hbase.security.User.login(User.java:259)
>   at 
> org.apache.hadoop.hbase.security.UserProvider.login(UserProvider.java:116)
>   at org.apache.hadoop.hbase.AuthUtil.launchAuthChore(AuthUtil.java:64)
>   at org.apache.hadoop.hbase.tool.Canary.main(Canary.java:1146)
> {noformat}
> {code}
> public static void main(String[] args) throws Exception {
> final Configuration conf = HBaseConfiguration.create();
> AuthUtil.launchAuthChore(conf);
> int numThreads = conf.getInt("hbase.canary.threads.num", MAX_THREADS_NUM);
> ExecutorService executor = new ScheduledThreadPoolExecutor(numThreads);
> Class sinkClass =
> conf.getClass("hbase.canary.sink.class", StdOutSink.class, 
> Sink.class);
> Sink sink = ReflectionUtils.newInstance(sinkClass);
> int exitCode = ToolRunner.run(conf, new Canary(executor, sink), args);
> executor.shutdown();
> System.exit(exitCode);
>   }
> {code}
> In main class these params should be parsed and updated. else for any change 
> to these value hbase-stie.xml needs to be updated 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (HBASE-15216) Canary does not accept few client config param from commandline( it should only be present in hbase-site.xml)

2016-02-08 Thread Vishal Khandelwal (JIRA)

 [ 
https://issues.apache.org/jira/browse/HBASE-15216?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Vishal Khandelwal updated HBASE-15216:
--
Status: Patch Available  (was: Open)

> Canary does not accept few client config param from commandline( it should 
> only be present in hbase-site.xml)
> -
>
> Key: HBASE-15216
> URL: https://issues.apache.org/jira/browse/HBASE-15216
> Project: HBase
>  Issue Type: Bug
>  Components: canary
>Affects Versions: 0.98.16
>Reporter: Vishal Khandelwal
>Assignee: Vishal Khandelwal
> Attachments: HBASE-15216.v1.patch
>
>
> At present there are few configs which needs to be present in  hbase-site or 
> default xml for it to work. following are the list.
> hbase.canary.threads.num
> hbase.canary.sink.class
> hbase.client.keytab.file
> hbase.client.kerberos.principal
> Execution in secure expects keytab and princ to be present 
> {noformat}
> 2016-02-05 05:58:44,024 ERROR [main] hbase.AuthUtil - Error while trying to 
> perform the initial login: Running in secure mode, but config doesn't have a 
> keytab
> java.io.IOException: Running in secure mode, but config doesn't have a keytab
>   at org.apache.hadoop.security.SecurityUtil.login(SecurityUtil.java:236)
>   at 
> org.apache.hadoop.hbase.security.User$SecureHadoopUser.login(User.java:392)
>   at org.apache.hadoop.hbase.security.User.login(User.java:259)
>   at 
> org.apache.hadoop.hbase.security.UserProvider.login(UserProvider.java:116)
>   at org.apache.hadoop.hbase.AuthUtil.launchAuthChore(AuthUtil.java:64)
>   at org.apache.hadoop.hbase.tool.Canary.main(Canary.java:1146)
> Exception in thread "main" java.io.IOException: Running in secure mode, but 
> config doesn't have a keytab
>   at org.apache.hadoop.security.SecurityUtil.login(SecurityUtil.java:236)
>   at 
> org.apache.hadoop.hbase.security.User$SecureHadoopUser.login(User.java:392)
>   at org.apache.hadoop.hbase.security.User.login(User.java:259)
>   at 
> org.apache.hadoop.hbase.security.UserProvider.login(UserProvider.java:116)
>   at org.apache.hadoop.hbase.AuthUtil.launchAuthChore(AuthUtil.java:64)
>   at org.apache.hadoop.hbase.tool.Canary.main(Canary.java:1146)
> {noformat}
> {code}
> public static void main(String[] args) throws Exception {
> final Configuration conf = HBaseConfiguration.create();
> AuthUtil.launchAuthChore(conf);
> int numThreads = conf.getInt("hbase.canary.threads.num", MAX_THREADS_NUM);
> ExecutorService executor = new ScheduledThreadPoolExecutor(numThreads);
> Class sinkClass =
> conf.getClass("hbase.canary.sink.class", StdOutSink.class, 
> Sink.class);
> Sink sink = ReflectionUtils.newInstance(sinkClass);
> int exitCode = ToolRunner.run(conf, new Canary(executor, sink), args);
> executor.shutdown();
> System.exit(exitCode);
>   }
> {code}
> In main class these params should be parsed and updated. else for any change 
> to these value hbase-stie.xml needs to be updated 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (HBASE-15216) Canary does not accept few client config param from commandline( it should only be present in hbase-site.xml)

2016-02-08 Thread Vishal Khandelwal (JIRA)

 [ 
https://issues.apache.org/jira/browse/HBASE-15216?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Vishal Khandelwal updated HBASE-15216:
--
Attachment: HBASE-15216.v1.patch

> Canary does not accept few client config param from commandline( it should 
> only be present in hbase-site.xml)
> -
>
> Key: HBASE-15216
> URL: https://issues.apache.org/jira/browse/HBASE-15216
> Project: HBase
>  Issue Type: Bug
>  Components: canary
>Affects Versions: 0.98.16
>Reporter: Vishal Khandelwal
>Assignee: Vishal Khandelwal
> Attachments: HBASE-15216.v1.patch
>
>
> At present there are few configs which needs to be present in  hbase-site or 
> default xml for it to work. following are the list.
> hbase.canary.threads.num
> hbase.canary.sink.class
> hbase.client.keytab.file
> hbase.client.kerberos.principal
> Execution in secure expects keytab and princ to be present 
> {noformat}
> 2016-02-05 05:58:44,024 ERROR [main] hbase.AuthUtil - Error while trying to 
> perform the initial login: Running in secure mode, but config doesn't have a 
> keytab
> java.io.IOException: Running in secure mode, but config doesn't have a keytab
>   at org.apache.hadoop.security.SecurityUtil.login(SecurityUtil.java:236)
>   at 
> org.apache.hadoop.hbase.security.User$SecureHadoopUser.login(User.java:392)
>   at org.apache.hadoop.hbase.security.User.login(User.java:259)
>   at 
> org.apache.hadoop.hbase.security.UserProvider.login(UserProvider.java:116)
>   at org.apache.hadoop.hbase.AuthUtil.launchAuthChore(AuthUtil.java:64)
>   at org.apache.hadoop.hbase.tool.Canary.main(Canary.java:1146)
> Exception in thread "main" java.io.IOException: Running in secure mode, but 
> config doesn't have a keytab
>   at org.apache.hadoop.security.SecurityUtil.login(SecurityUtil.java:236)
>   at 
> org.apache.hadoop.hbase.security.User$SecureHadoopUser.login(User.java:392)
>   at org.apache.hadoop.hbase.security.User.login(User.java:259)
>   at 
> org.apache.hadoop.hbase.security.UserProvider.login(UserProvider.java:116)
>   at org.apache.hadoop.hbase.AuthUtil.launchAuthChore(AuthUtil.java:64)
>   at org.apache.hadoop.hbase.tool.Canary.main(Canary.java:1146)
> {noformat}
> {code}
> public static void main(String[] args) throws Exception {
> final Configuration conf = HBaseConfiguration.create();
> AuthUtil.launchAuthChore(conf);
> int numThreads = conf.getInt("hbase.canary.threads.num", MAX_THREADS_NUM);
> ExecutorService executor = new ScheduledThreadPoolExecutor(numThreads);
> Class sinkClass =
> conf.getClass("hbase.canary.sink.class", StdOutSink.class, 
> Sink.class);
> Sink sink = ReflectionUtils.newInstance(sinkClass);
> int exitCode = ToolRunner.run(conf, new Canary(executor, sink), args);
> executor.shutdown();
> System.exit(exitCode);
>   }
> {code}
> In main class these params should be parsed and updated. else for any change 
> to these value hbase-stie.xml needs to be updated 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (HBASE-15216) Canary does not accept few client config param from commandline( it should only be present in hbase-site.xml)

2016-02-05 Thread Vishal Khandelwal (JIRA)

 [ 
https://issues.apache.org/jira/browse/HBASE-15216?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Vishal Khandelwal updated HBASE-15216:
--
Description: 
At present there are few configs which needs to be present in  hbase-site or 
default xml for it to work. following are the list.
hbase.canary.threads.num
hbase.canary.sink.class
hbase.client.keytab.file
hbase.client.kerberos.principal

Execution in secure expects keytab and princ to be present 
{noformat}
2016-02-05 05:58:44,024 ERROR [main] hbase.AuthUtil - Error while trying to 
perform the initial login: Running in secure mode, but config doesn't have a 
keytab
java.io.IOException: Running in secure mode, but config doesn't have a keytab
at org.apache.hadoop.security.SecurityUtil.login(SecurityUtil.java:236)
at 
org.apache.hadoop.hbase.security.User$SecureHadoopUser.login(User.java:392)
at org.apache.hadoop.hbase.security.User.login(User.java:259)
at 
org.apache.hadoop.hbase.security.UserProvider.login(UserProvider.java:116)
at org.apache.hadoop.hbase.AuthUtil.launchAuthChore(AuthUtil.java:64)
at org.apache.hadoop.hbase.tool.Canary.main(Canary.java:1146)
Exception in thread "main" java.io.IOException: Running in secure mode, but 
config doesn't have a keytab
at org.apache.hadoop.security.SecurityUtil.login(SecurityUtil.java:236)
at 
org.apache.hadoop.hbase.security.User$SecureHadoopUser.login(User.java:392)
at org.apache.hadoop.hbase.security.User.login(User.java:259)
at 
org.apache.hadoop.hbase.security.UserProvider.login(UserProvider.java:116)
at org.apache.hadoop.hbase.AuthUtil.launchAuthChore(AuthUtil.java:64)
at org.apache.hadoop.hbase.tool.Canary.main(Canary.java:1146)
{noformat}
{code}
public static void main(String[] args) throws Exception {
final Configuration conf = HBaseConfiguration.create();
AuthUtil.launchAuthChore(conf);
int numThreads = conf.getInt("hbase.canary.threads.num", MAX_THREADS_NUM);
ExecutorService executor = new ScheduledThreadPoolExecutor(numThreads);

Class sinkClass =
conf.getClass("hbase.canary.sink.class", StdOutSink.class, Sink.class);
Sink sink = ReflectionUtils.newInstance(sinkClass);

int exitCode = ToolRunner.run(conf, new Canary(executor, sink), args);
executor.shutdown();
System.exit(exitCode);
  }
{code}
In main class these params should be parsed and updated. else for any change to 
these value hbase-stie.xml needs to be updated 

  was:
At present there are few configs which needs to be present in  hbase-site or 
default xml for it to work. following are the list.
hbase.canary.threads.num
hbase.canary.sink.class
hbase.client.keytab.file
hbase.client.kerberos.principal

Execution in secure expects keytab and princ to be present 
{noformat}
2016-02-05 05:58:44,024 ERROR [main] hbase.AuthUtil - Error while trying to 
perform the initial login: Running in secure mode, but config doesn't have a 
keytab
java.io.IOException: Running in secure mode, but config doesn't have a keytab
at org.apache.hadoop.security.SecurityUtil.login(SecurityUtil.java:236)
at 
org.apache.hadoop.hbase.security.User$SecureHadoopUser.login(User.java:392)
at org.apache.hadoop.hbase.security.User.login(User.java:259)
at 
org.apache.hadoop.hbase.security.UserProvider.login(UserProvider.java:116)
at org.apache.hadoop.hbase.AuthUtil.launchAuthChore(AuthUtil.java:64)
at org.apache.hadoop.hbase.tool.Canary.main(Canary.java:1146)
Exception in thread "main" java.io.IOException: Running in secure mode, but 
config doesn't have a keytab
at org.apache.hadoop.security.SecurityUtil.login(SecurityUtil.java:236)
at 
org.apache.hadoop.hbase.security.User$SecureHadoopUser.login(User.java:392)
at org.apache.hadoop.hbase.security.User.login(User.java:259)
at 
org.apache.hadoop.hbase.security.UserProvider.login(UserProvider.java:116)
at org.apache.hadoop.hbase.AuthUtil.launchAuthChore(AuthUtil.java:64)
at org.apache.hadoop.hbase.tool.Canary.main(Canary.java:1146)
{noformat}
{code}
public static void main(String[] args) throws Exception {
final Configuration conf = HBaseConfiguration.create();
AuthUtil.launchAuthChore(conf);
int numThreads = conf.getInt("hbase.canary.threads.num", MAX_THREADS_NUM);
ExecutorService executor = new ScheduledThreadPoolExecutor(numThreads);

Class sinkClass =
conf.getClass("hbase.canary.sink.class", StdOutSink.class, Sink.class);
Sink sink = ReflectionUtils.newInstance(sinkClass);

int exitCode = ToolRunner.run(conf, new Canary(executor, sink), args);
executor.shutdown();
System.exit(exitCode);
  }
{code}
In main class these params should be parsed and updated. else for any change to 
these value hbase-stie.xml needs to be updated and hbase service needs to be 
restarted.


> Canary does 

[jira] [Updated] (HBASE-15216) Canary does not accept few client config param from commandline( it should only be present in hbase-site.xml)

2016-02-04 Thread Vishal Khandelwal (JIRA)

 [ 
https://issues.apache.org/jira/browse/HBASE-15216?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Vishal Khandelwal updated HBASE-15216:
--
Summary: Canary does not accept few client config param from commandline( 
it should only be present in hbase-site.xml)  (was: Canary does not accepts few 
client config param from commandline( it should only be present in 
hbase-site.xml))

> Canary does not accept few client config param from commandline( it should 
> only be present in hbase-site.xml)
> -
>
> Key: HBASE-15216
> URL: https://issues.apache.org/jira/browse/HBASE-15216
> Project: HBase
>  Issue Type: Bug
>  Components: canary
>Affects Versions: 0.98.16
>Reporter: Vishal Khandelwal
>
> At present there are few configs which needs to be present in  hbase-site or 
> default xml for it to work. following are the list.
> hbase.canary.threads.num
> hbase.canary.sink.class
> hbase.client.keytab.file
> hbase.client.kerberos.principal
> Execution in secure expects keytab and princ to be present 
> 2016-02-05 05:58:44,024 ERROR [main] hbase.AuthUtil - Error while trying to 
> perform the initial login: Running in secure mode, but config doesn't have a 
> keytab
> java.io.IOException: Running in secure mode, but config doesn't have a keytab
>   at org.apache.hadoop.security.SecurityUtil.login(SecurityUtil.java:236)
>   at 
> org.apache.hadoop.hbase.security.User$SecureHadoopUser.login(User.java:392)
>   at org.apache.hadoop.hbase.security.User.login(User.java:259)
>   at 
> org.apache.hadoop.hbase.security.UserProvider.login(UserProvider.java:116)
>   at org.apache.hadoop.hbase.AuthUtil.launchAuthChore(AuthUtil.java:64)
>   at org.apache.hadoop.hbase.tool.Canary.main(Canary.java:1146)
> Exception in thread "main" java.io.IOException: Running in secure mode, but 
> config doesn't have a keytab
>   at org.apache.hadoop.security.SecurityUtil.login(SecurityUtil.java:236)
>   at 
> org.apache.hadoop.hbase.security.User$SecureHadoopUser.login(User.java:392)
>   at org.apache.hadoop.hbase.security.User.login(User.java:259)
>   at 
> org.apache.hadoop.hbase.security.UserProvider.login(UserProvider.java:116)
>   at org.apache.hadoop.hbase.AuthUtil.launchAuthChore(AuthUtil.java:64)
>   at org.apache.hadoop.hbase.tool.Canary.main(Canary.java:1146)
> public static void main(String[] args) throws Exception {
> final Configuration conf = HBaseConfiguration.create();
> AuthUtil.launchAuthChore(conf);
> int numThreads = conf.getInt("hbase.canary.threads.num", MAX_THREADS_NUM);
> ExecutorService executor = new ScheduledThreadPoolExecutor(numThreads);
> Class sinkClass =
> conf.getClass("hbase.canary.sink.class", StdOutSink.class, 
> Sink.class);
> Sink sink = ReflectionUtils.newInstance(sinkClass);
> int exitCode = ToolRunner.run(conf, new Canary(executor, sink), args);
> executor.shutdown();
> System.exit(exitCode);
>   }
> In main class these params should be parsed and updated. else for any change 
> to these value hbase-stie.xml needs to be updated and hbase service needs to 
> be restarted.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (HBASE-15216) Canary does not accept few client config param from commandline( it should only be present in hbase-site.xml)

2016-02-04 Thread Matteo Bertozzi (JIRA)

 [ 
https://issues.apache.org/jira/browse/HBASE-15216?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Matteo Bertozzi updated HBASE-15216:

Description: 
At present there are few configs which needs to be present in  hbase-site or 
default xml for it to work. following are the list.
hbase.canary.threads.num
hbase.canary.sink.class
hbase.client.keytab.file
hbase.client.kerberos.principal

Execution in secure expects keytab and princ to be present 
{noformat}
2016-02-05 05:58:44,024 ERROR [main] hbase.AuthUtil - Error while trying to 
perform the initial login: Running in secure mode, but config doesn't have a 
keytab
java.io.IOException: Running in secure mode, but config doesn't have a keytab
at org.apache.hadoop.security.SecurityUtil.login(SecurityUtil.java:236)
at 
org.apache.hadoop.hbase.security.User$SecureHadoopUser.login(User.java:392)
at org.apache.hadoop.hbase.security.User.login(User.java:259)
at 
org.apache.hadoop.hbase.security.UserProvider.login(UserProvider.java:116)
at org.apache.hadoop.hbase.AuthUtil.launchAuthChore(AuthUtil.java:64)
at org.apache.hadoop.hbase.tool.Canary.main(Canary.java:1146)
Exception in thread "main" java.io.IOException: Running in secure mode, but 
config doesn't have a keytab
at org.apache.hadoop.security.SecurityUtil.login(SecurityUtil.java:236)
at 
org.apache.hadoop.hbase.security.User$SecureHadoopUser.login(User.java:392)
at org.apache.hadoop.hbase.security.User.login(User.java:259)
at 
org.apache.hadoop.hbase.security.UserProvider.login(UserProvider.java:116)
at org.apache.hadoop.hbase.AuthUtil.launchAuthChore(AuthUtil.java:64)
at org.apache.hadoop.hbase.tool.Canary.main(Canary.java:1146)
{noformat}
{code}
public static void main(String[] args) throws Exception {
final Configuration conf = HBaseConfiguration.create();
AuthUtil.launchAuthChore(conf);
int numThreads = conf.getInt("hbase.canary.threads.num", MAX_THREADS_NUM);
ExecutorService executor = new ScheduledThreadPoolExecutor(numThreads);

Class sinkClass =
conf.getClass("hbase.canary.sink.class", StdOutSink.class, Sink.class);
Sink sink = ReflectionUtils.newInstance(sinkClass);

int exitCode = ToolRunner.run(conf, new Canary(executor, sink), args);
executor.shutdown();
System.exit(exitCode);
  }
{code}
In main class these params should be parsed and updated. else for any change to 
these value hbase-stie.xml needs to be updated and hbase service needs to be 
restarted.

  was:
At present there are few configs which needs to be present in  hbase-site or 
default xml for it to work. following are the list.
hbase.canary.threads.num
hbase.canary.sink.class
hbase.client.keytab.file
hbase.client.kerberos.principal

Execution in secure expects keytab and princ to be present 
2016-02-05 05:58:44,024 ERROR [main] hbase.AuthUtil - Error while trying to 
perform the initial login: Running in secure mode, but config doesn't have a 
keytab
java.io.IOException: Running in secure mode, but config doesn't have a keytab
at org.apache.hadoop.security.SecurityUtil.login(SecurityUtil.java:236)
at 
org.apache.hadoop.hbase.security.User$SecureHadoopUser.login(User.java:392)
at org.apache.hadoop.hbase.security.User.login(User.java:259)
at 
org.apache.hadoop.hbase.security.UserProvider.login(UserProvider.java:116)
at org.apache.hadoop.hbase.AuthUtil.launchAuthChore(AuthUtil.java:64)
at org.apache.hadoop.hbase.tool.Canary.main(Canary.java:1146)
Exception in thread "main" java.io.IOException: Running in secure mode, but 
config doesn't have a keytab
at org.apache.hadoop.security.SecurityUtil.login(SecurityUtil.java:236)
at 
org.apache.hadoop.hbase.security.User$SecureHadoopUser.login(User.java:392)
at org.apache.hadoop.hbase.security.User.login(User.java:259)
at 
org.apache.hadoop.hbase.security.UserProvider.login(UserProvider.java:116)
at org.apache.hadoop.hbase.AuthUtil.launchAuthChore(AuthUtil.java:64)
at org.apache.hadoop.hbase.tool.Canary.main(Canary.java:1146)


public static void main(String[] args) throws Exception {
final Configuration conf = HBaseConfiguration.create();
AuthUtil.launchAuthChore(conf);
int numThreads = conf.getInt("hbase.canary.threads.num", MAX_THREADS_NUM);
ExecutorService executor = new ScheduledThreadPoolExecutor(numThreads);

Class sinkClass =
conf.getClass("hbase.canary.sink.class", StdOutSink.class, Sink.class);
Sink sink = ReflectionUtils.newInstance(sinkClass);

int exitCode = ToolRunner.run(conf, new Canary(executor, sink), args);
executor.shutdown();
System.exit(exitCode);
  }

In main class these params should be parsed and updated. else for any change to 
these value hbase-stie.xml needs to be updated and hbase service needs to be 
restarted.


> Canary