?????? ?????? ?????? How to use spark to access HBase with Security enabled

2015-05-23 Thread donhoff_h
er contain the principal I set up with the kinit command? Many Thanks! -- -- ??: "yuzhihong";; : 2015??5??22??(??) 7:25 ??: "donhoff_h"<165612...@qq.com>; ????: "Bill Q"; "user"; ?

Re: How to use spark to access HBase with Security enabled

2015-05-22 Thread Frank Staszak
>> conn.close() >> es.shutdown() >>} >> >>val rdd = sc.parallelize(Array(1,2,3,4,5,6,7,8,9,10)) >>val v = rdd.sum() >>println("Value="+v) >>sc.stop() >> >> } >> } >> >> >>

Re: 回复: 回复: How to use spark to access HBase with Security enabled

2015-05-22 Thread Ted Yu
.close() > conn.close() > es.shutdown() >} > >val rdd = sc.parallelize(Array(1,2,3,4,5,6,7,8,9,10)) >val v = rdd.sum() >println("Value="+v) > sc.stop() > > } > } > > > -- 原始邮件 -- > 发件人:

?????? ?????? How to use spark to access HBase with Security enabled

2015-05-22 Thread donhoff_h
-- ???????? ---------- ??????: "yuzhihong";; : 2015??5??22??(??) 5:29 ??: "donhoff_h"<165612...@qq.com>; : "Bill Q"; "user"; : Re: How to use spark to access HBase with Security enabled Are the worker nodes colocate

Re: 回复: How to use spark to access HBase with Security enabled

2015-05-22 Thread Ted Yu
val c = it.next() >>val family = Bytes.toString(CellUtil.cloneFamily(c)) >> val qualifier = Bytes.toString(CellUtil.cloneQualifier(c)) >>val value = Bytes.toString(CellUtil.cloneValue(c)) >>val tm = c.getTimestamp >>

?????? How to use spark to access HBase with Security enabled

2015-05-21 Thread donhoff_h
any Thanks! -- -- ??: "yuzhihong";; : 2015??5??22??(??) 5:29 ??: "donhoff_h"<165612...@qq.com>; ????: "Bill Q"; "user"; ????: Re: How to use spark to access HBase with Security enabled Are the worker nodes colocated with HBase region servers

Re: How to use spark to access HBase with Security enabled

2015-05-21 Thread Bill Q
";> >; >> *发送时间:* 2015年5月20日(星期三) 晚上10:13 >> *收件人:* "donhoff_h"<165612...@qq.com >> >; >> *抄送:* "yuzhihong"> >; "user"< >> user@spark.apache.org >> >; >> *主题:* Re: How to use spark to access HBas

Re: How to use spark to access HBase with Security enabled

2015-05-21 Thread Ted Yu
gt; > ***I used the following command to run my > program** > spark-submit --class dhao.test.read.singleTable.TestHBaseRead --master > yarn-cluster --driver-java-options > "-Djava.security.auth.login.config=/home/spark/spark-hbase.jaas > -Dj

?????? How to use spark to access HBase with Security enabled

2015-05-21 Thread donhoff_h
urity.auth.login.config=/home/spark/spark-hbase.jaas -Djava.security.krb5.conf=/etc/krb5.conf" /home/spark/myApps/TestHBase.jar -- -- ??: "Bill Q";; ????: 2015??5??20??(??) 10:13 ??: "donhoff_h"<165612...@qq.com>; : "yuzhihong"; "user&

Re: How to use spark to access HBase with Security enabled

2015-05-20 Thread Bill Q
> *收件人:* "donhoff_h"<165612...@qq.com > >; > *抄送:* "user" >; > *主题:* Re: How to use spark to access HBase with Security enabled > > Please take a look at: > > http://hbase.apache.org/book.html#_client_side_configuration_for_secure_operation > &

?????? How to use spark to access HBase with Security enabled

2015-05-19 Thread donhoff_h
this problem. Can anybody help me to figure it out? Many Thanks! -- -- ??: "yuzhihong";; : 2015??5??19??(??) 7:55 ??????: "donhoff_h"<165612...@qq.com>; ????: "user"; : Re: How to use spark to a

Re: How to use spark to access HBase with Security enabled

2015-05-19 Thread Ted Yu
s! > > -- 原始邮件 -- > *发件人:* "yuzhihong";; > *发送时间:* 2015年5月19日(星期二) 晚上7:55 > *收件人:* "donhoff_h"<165612...@qq.com>; > *抄送:* "user"; > *主题:* Re: How to use spark to access HBase with Security enabled > > Which user

?????? How to use spark to access HBase with Security enabled

2015-05-19 Thread donhoff_h
solve this problem. Can anybody help me to figure it out? Many Thanks! -- -- ??: "yuzhihong";; : 2015??5??19??(??) 7:55 ??: "donhoff_h"<165612...@qq.com>; ????: "user"; ????: Re: How to use

Re: How to use spark to access HBase with Security enabled

2015-05-19 Thread Ted Yu
Which user did you run your program as ? Have you granted proper permission on hbase side ? You should also check master log to see if there was some clue. Cheers > On May 19, 2015, at 2:41 AM, donhoff_h <165612...@qq.com> wrote: > > Hi, experts. > > I ran the "HBaseTest" program which is

How to use spark to access HBase with Security enabled

2015-05-19 Thread donhoff_h
Hi, experts. I ran the "HBaseTest" program which is an example from the Apache Spark source code to learn how to use spark to access HBase. But I met the following exception: Exception in thread "main" org.apache.hadoop.hbase.client.RetriesExhaustedException: Failed after attempts=36, exceptio