From issues-return-67590-archive-asf-public=cust-asf.ponee.io@ambari.apache.org Wed Feb 28 10:33:07 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 4119418066D for ; Wed, 28 Feb 2018 10:33:06 +0100 (CET) Received: (qmail 33664 invoked by uid 500); 28 Feb 2018 09:33:05 -0000 Mailing-List: contact issues-help@ambari.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ambari.apache.org Delivered-To: mailing list issues@ambari.apache.org Received: (qmail 33655 invoked by uid 99); 28 Feb 2018 09:33:05 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Feb 2018 09:33:05 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id DC3AEC181B for ; Wed, 28 Feb 2018 09:33:04 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -110.311 X-Spam-Level: X-Spam-Status: No, score=-110.311 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id IPogM4tlQVcY for ; Wed, 28 Feb 2018 09:33:02 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 6F38D5F521 for ; Wed, 28 Feb 2018 09:33:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id B5A30E08C9 for ; Wed, 28 Feb 2018 09:33:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 29AFF24112 for ; Wed, 28 Feb 2018 09:33:00 +0000 (UTC) Date: Wed, 28 Feb 2018 09:33:00 +0000 (UTC) From: "yuandeqiao (JIRA)" To: issues@ambari.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (AMBARI-23104) ambari-hive-kerberos-cli MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/AMBARI-23104?page=3Dcom.atlass= ian.jira.plugin.system.issuetabpanels:all-tabpanel ] yuandeqiao updated AMBARI-23104: -------------------------------- Description:=20 =C2=A0 hive cli : I used to enter hive cil by=E2=80=9Cmkdir/...=E2=80=9D. While now , it does= n't work when the kerbores is in operation. And it prompt: [root@hive ~]# sudo -u hive hive log4j:WARN No such property [maxFileSize] in org.apache.log4j.DailyRolling= FileAppender. Logging initialized using configuration in [file:/etc/hive/2.6.3.0-235/0/hi= ve-log4j.properties|file://etc/hive/2.6.3.0-235/0/hive-log4j.properties] Exception in thread "main" java.lang.RuntimeException: java.lang.RuntimeEx= ception: Unable to instantiate org.apache.hadoop.hive.ql.metadata.SessionHi= veMetaStoreClient at org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:= 552) at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:681) at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:625) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja= va:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso= rImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.apache.hadoop.util.RunJar.run(RunJar.java:233) at org.apache.hadoop.util.RunJar.main(RunJar.java:148) Caused by: java.lang.RuntimeException: Unable to instantiate org.apache.ha= doop.hive.ql.metadata.SessionHiveMetaStoreClient at org.apache.hadoop.hive.metastore.MetaStoreUtils.newInstance(MetaStoreUt= ils.java:1566) at org.apache.hadoop.hive.metastore.RetryingMetaStoreClient.(Retryin= gMetaStoreClient.java:92) at org.apache.hadoop.hive.metastore.RetryingMetaStoreClient.getProxy(Retry= ingMetaStoreClient.java:138) at org.apache.hadoop.hive.metastore.RetryingMetaStoreClient.getProxy(Retry= ingMetaStoreClient.java:110) at org.apache.hadoop.hive.ql.metadata.Hive.createMetaStoreClient(Hive.java= :3526) at org.apache.hadoop.hive.ql.metadata.Hive.getMSC(Hive.java:3558) at org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:= 533) ... 8 more Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructor= AccessorImpl.java:62) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingCon= structorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:423) at org.apache.hadoop.hive.metastore.MetaStoreUtils.newInstance(MetaStoreUt= ils.java:1564) ... 14 more Caused by: MetaException(message:Could not connect to meta store using any= of the URIs provided. Most recent failure: org.apache.thrift.transport.TTr= ansportException: GSS initiate failed at org.apache.thrift.transport.TSaslTransport.sendAndThrowMessage(TSaslTra= nsport.java:232) at org.apache.thrift.transport.TSaslTransport.open(TSaslTransport.java:316= ) at org.apache.thrift.transport.TSaslClientTransport.open(TSaslClientTransp= ort.java:37) at org.apache.hadoop.hive.thrift.client.TUGIAssumingTransport$1.run(TUGIAs= sumingTransport.java:52) at org.apache.hadoop.hive.thrift.client.TUGIAssumingTransport$1.run(TUGIAs= sumingTransport.java:49) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.Subject.doAs(Subject.java:422) at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformati= on.java:1866) at org.apache.hadoop.hive.thrift.client.TUGIAssumingTransport.open(TUGIAss= umingTransport.java:49) at org.apache.hadoop.hive.metastore.HiveMetaStoreClient.open(HiveMetaStore= Client.java:487) at org.apache.hadoop.hive.metastore.HiveMetaStoreClient.(HiveMetaSto= reClient.java:282) at org.apache.hadoop.hive.ql.metadata.SessionHiveMetaStoreClient.(Se= ssionHiveMetaStoreClient.java:76) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructor= AccessorImpl.java:62) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingCon= structorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:423) at org.apache.hadoop.hive.metastore.MetaStoreUtils.newInstance(MetaStoreUt= ils.java:1564) at org.apache.hadoop.hive.metastore.RetryingMetaStoreClient.(Retryin= gMetaStoreClient.java:92) at org.apache.hadoop.hive.metastore.RetryingMetaStoreClient.getProxy(Retry= ingMetaStoreClient.java:138) at org.apache.hadoop.hive.metastore.RetryingMetaStoreClient.getProxy(Retry= ingMetaStoreClient.java:110) at org.apache.hadoop.hive.ql.metadata.Hive.createMetaStoreClient(Hive.java= :3526) at org.apache.hadoop.hive.ql.metadata.Hive.getMSC(Hive.java:3558) at org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:= 533) at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:681) at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:625) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja= va:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso= rImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.apache.hadoop.util.RunJar.run(RunJar.java:233) at org.apache.hadoop.util.RunJar.main(RunJar.java:148) ) at org.apache.hadoop.hive.metastore.HiveMetaStoreClient.open(HiveMetaStore= Client.java:534) at org.apache.hadoop.hive.metastore.HiveMetaStoreClient.(HiveMetaSto= reClient.java:282) at org.apache.hadoop.hive.ql.metadata.SessionHiveMetaStoreClient.(Se= ssionHiveMetaStoreClient.java:76) ... 19 more [root@hive ~]# =C2=A0 got from=C2=A0/var/log/hive/hiveserver2.log : 2018-02-28 17:07:24,671 INFO [HiveServer2-Handler-Pool: Thread-45]: thrift.= ThriftCLIService (ThriftCLIService.java:OpenSession(316)) - Client protocol= version: HIVE_CLI_SERVICE_PROTOCOL_V8 2018-02-28 17:07:24,671 INFO [HiveServer2-Handler-Pool: Thread-45]: metast= ore.HiveMetaStore (HiveMetaStore.java:logInfo(773)) - 1: Shutting down the = object store... 2018-02-28 17:07:24,671 INFO [HiveServer2-Handler-Pool: Thread-45]: HiveMe= taStore.audit (HiveMetaStore.java:logAuditEvent(317)) - ugi=3Dhive/hive.tes= t@EXAMPLE.COM ip=3Dunknown-ip-addr cmd=3DShutting down the object store...= =20 2018-02-28 17:07:24,672 INFO [HiveServer2-Handler-Pool: Thread-45]: metast= ore.HiveMetaStore (HiveMetaStore.java:logInfo(773)) - 1: Metastore shutdown= complete. 2018-02-28 17:07:24,672 INFO [HiveServer2-Handler-Pool: Thread-45]: HiveMe= taStore.audit (HiveMetaStore.java:logAuditEvent(317)) - ugi=3Dhive/hive.tes= t@EXAMPLE.COM ip=3Dunknown-ip-addr cmd=3DMetastore shutdown complete.=20 2018-02-28 17:07:24,672 INFO [HiveServer2-Handler-Pool: Thread-45]: metast= ore.HiveMetaStore (HiveMetaStore.java:init(453)) - Begin calculating metada= ta count metrics. 2018-02-28 17:07:24,816 WARN [HiveServer2-Handler-Pool: Thread-45]: conf.H= iveConf (HiveConf.java:initialize(3093)) - HiveConf of name hive.internal.s= s.authz.settings.applied.marker does not exist 2018-02-28 17:07:24,820 INFO [HiveServer2-Handler-Pool: Thread-45]: metast= ore.HiveMetaStore (HiveMetaStore.java:newRawStoreForConf(619)) - 1: Opening= raw store with implementation class:org.apache.hadoop.hive.metastore.Objec= tStore 2018-02-28 17:07:24,852 INFO [HiveServer2-Handler-Pool: Thread-45]: metast= ore.ObjectStore (ObjectStore.java:initializeHelper(383)) - ObjectStore, ini= tialize called 2018-02-28 17:07:24,981 WARN [HiveServer2-Handler-Pool: Thread-45]: conf.H= iveConf (HiveConf.java:initialize(3093)) - HiveConf of name hive.internal.s= s.authz.settings.applied.marker does not exist 2018-02-28 17:07:24,986 INFO [HiveServer2-Handler-Pool: Thread-45]: metast= ore.MetaStoreDirectSql (MetaStoreDirectSql.java:(163)) - Using direct= SQL, underlying DB is OTHER 2018-02-28 17:07:24,986 INFO [HiveServer2-Handler-Pool: Thread-45]: metast= ore.ObjectStore (ObjectStore.java:setConf(297)) - Initialized ObjectStore 2018-02-28 17:07:24,990 INFO [HiveServer2-Handler-Pool: Thread-45]: metast= ore.HiveMetaStore (HiveMetaStore.java:init(455)) - Finished metadata count = metrics: 1 databases, 0 tables, 0 partitions. 2018-02-28 17:07:24,991 WARN [HiveServer2-Handler-Pool: Thread-45]: metric= s2.CodahaleMetrics (CodahaleMetrics.java:addGauge(299)) - A Gauge with name= [init_total_count_dbs] already exists. The old gauge will be overwritten, = but this is not recommended 2018-02-28 17:07:24,991 WARN [HiveServer2-Handler-Pool: Thread-45]: metric= s2.CodahaleMetrics (CodahaleMetrics.java:addGauge(299)) - A Gauge with name= [init_total_count_tables] already exists. The old gauge will be overwritte= n, but this is not recommended 2018-02-28 17:07:24,991 WARN [HiveServer2-Handler-Pool: Thread-45]: metric= s2.CodahaleMetrics (CodahaleMetrics.java:addGauge(299)) - A Gauge with name= [init_total_count_partitions] already exists. The old gauge will be overwr= itten, but this is not recommended 2018-02-28 17:07:25,014 INFO [HiveServer2-Handler-Pool: Thread-45]: metast= ore.ObjectStore (ObjectStore.java:initializeHelper(383)) - ObjectStore, ini= tialize called 2018-02-28 17:07:25,171 WARN [HiveServer2-Handler-Pool: Thread-45]: conf.H= iveConf (HiveConf.java:initialize(3093)) - HiveConf of name hive.internal.s= s.authz.settings.applied.marker does not exist 2018-02-28 17:07:25,181 INFO [HiveServer2-Handler-Pool: Thread-45]: metast= ore.MetaStoreDirectSql (MetaStoreDirectSql.java:(163)) - Using direct= SQL, underlying DB is OTHER 2018-02-28 17:07:25,181 INFO [HiveServer2-Handler-Pool: Thread-45]: metast= ore.ObjectStore (ObjectStore.java:setConf(297)) - Initialized ObjectStore 2018-02-28 17:07:25,182 INFO [HiveServer2-Handler-Pool: Thread-45]: metast= ore.HiveMetaStore (HiveMetaStore.java:init(453)) - Begin calculating metada= ta count metrics. 2018-02-28 17:07:25,185 INFO [HiveServer2-Handler-Pool: Thread-45]: metast= ore.HiveMetaStore (HiveMetaStore.java:init(455)) - Finished metadata count = metrics: 1 databases, 0 tables, 0 partitions. 2018-02-28 17:07:25,185 WARN [HiveServer2-Handler-Pool: Thread-45]: metric= s2.CodahaleMetrics (CodahaleMetrics.java:addGauge(299)) - A Gauge with name= [init_total_count_dbs] already exists. The old gauge will be overwritten, = but this is not recommended 2018-02-28 17:07:25,185 WARN [HiveServer2-Handler-Pool: Thread-45]: metric= s2.CodahaleMetrics (CodahaleMetrics.java:addGauge(299)) - A Gauge with name= [init_total_count_tables] already exists. The old gauge will be overwritte= n, but this is not recommended 2018-02-28 17:07:25,185 WARN [HiveServer2-Handler-Pool: Thread-45]: metric= s2.CodahaleMetrics (CodahaleMetrics.java:addGauge(299)) - A Gauge with name= [init_total_count_partitions] already exists. The old gauge will be overwr= itten, but this is not recommended 2018-02-28 17:07:25,219 INFO [HiveServer2-Handler-Pool: Thread-45]: sessio= n.SessionState (SessionState.java:createPath(682)) - Created local director= y: /tmp/7645338b-a770-4ee8-8eb4-5ffe663652e0_resources 2018-02-28 17:07:25,259 INFO [HiveServer2-Handler-Pool: Thread-45]: sessio= n.SessionState (SessionState.java:createPath(682)) - Created HDFS directory= : /tmp/hive/ambari-qa/7645338b-a770-4ee8-8eb4-5ffe663652e0 2018-02-28 17:07:25,261 INFO [HiveServer2-Handler-Pool: Thread-45]: sessio= n.SessionState (SessionState.java:createPath(682)) - Created local director= y: /tmp/hive/7645338b-a770-4ee8-8eb4-5ffe663652e0 2018-02-28 17:07:25,284 INFO [HiveServer2-Handler-Pool: Thread-45]: sessio= n.SessionState (SessionState.java:createPath(682)) - Created HDFS directory= : /tmp/hive/ambari-qa/7645338b-a770-4ee8-8eb4-5ffe663652e0/_tmp_space.db 2018-02-28 17:07:25,286 INFO [HiveServer2-Handler-Pool: Thread-45]: sessio= n.HiveSessionImpl (HiveSessionImpl.java:setOperationLogSessionDir(274)) - O= peration log session directory is created: /tmp/hive/operation_logs/7645338= b-a770-4ee8-8eb4-5ffe663652e0 was: =C2=A0 hive cli : i don't know why hive cli enter exception point . i want to solve ,thanks! [root@hive ~]# sudo -u hive hive log4j:WARN No such property [maxFileSize] in org.apache.log4j.DailyRolling= FileAppender. Logging initialized using configuration in [file:/etc/hive/2.6.3.0-235/0/hi= ve-log4j.properties|file://etc/hive/2.6.3.0-235/0/hive-log4j.properties] Exception in thread "main" java.lang.RuntimeException: java.lang.RuntimeEx= ception: Unable to instantiate org.apache.hadoop.hive.ql.metadata.SessionHi= veMetaStoreClient at org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:= 552) at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:681) at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:625) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja= va:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso= rImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.apache.hadoop.util.RunJar.run(RunJar.java:233) at org.apache.hadoop.util.RunJar.main(RunJar.java:148) Caused by: java.lang.RuntimeException: Unable to instantiate org.apache.ha= doop.hive.ql.metadata.SessionHiveMetaStoreClient at org.apache.hadoop.hive.metastore.MetaStoreUtils.newInstance(MetaStoreUt= ils.java:1566) at org.apache.hadoop.hive.metastore.RetryingMetaStoreClient.(Retryin= gMetaStoreClient.java:92) at org.apache.hadoop.hive.metastore.RetryingMetaStoreClient.getProxy(Retry= ingMetaStoreClient.java:138) at org.apache.hadoop.hive.metastore.RetryingMetaStoreClient.getProxy(Retry= ingMetaStoreClient.java:110) at org.apache.hadoop.hive.ql.metadata.Hive.createMetaStoreClient(Hive.java= :3526) at org.apache.hadoop.hive.ql.metadata.Hive.getMSC(Hive.java:3558) at org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:= 533) ... 8 more Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructor= AccessorImpl.java:62) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingCon= structorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:423) at org.apache.hadoop.hive.metastore.MetaStoreUtils.newInstance(MetaStoreUt= ils.java:1564) ... 14 more Caused by: MetaException(message:Could not connect to meta store using any= of the URIs provided. Most recent failure: org.apache.thrift.transport.TTr= ansportException: GSS initiate failed at org.apache.thrift.transport.TSaslTransport.sendAndThrowMessage(TSaslTra= nsport.java:232) at org.apache.thrift.transport.TSaslTransport.open(TSaslTransport.java:316= ) at org.apache.thrift.transport.TSaslClientTransport.open(TSaslClientTransp= ort.java:37) at org.apache.hadoop.hive.thrift.client.TUGIAssumingTransport$1.run(TUGIAs= sumingTransport.java:52) at org.apache.hadoop.hive.thrift.client.TUGIAssumingTransport$1.run(TUGIAs= sumingTransport.java:49) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.Subject.doAs(Subject.java:422) at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformati= on.java:1866) at org.apache.hadoop.hive.thrift.client.TUGIAssumingTransport.open(TUGIAss= umingTransport.java:49) at org.apache.hadoop.hive.metastore.HiveMetaStoreClient.open(HiveMetaStore= Client.java:487) at org.apache.hadoop.hive.metastore.HiveMetaStoreClient.(HiveMetaSto= reClient.java:282) at org.apache.hadoop.hive.ql.metadata.SessionHiveMetaStoreClient.(Se= ssionHiveMetaStoreClient.java:76) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructor= AccessorImpl.java:62) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingCon= structorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:423) at org.apache.hadoop.hive.metastore.MetaStoreUtils.newInstance(MetaStoreUt= ils.java:1564) at org.apache.hadoop.hive.metastore.RetryingMetaStoreClient.(Retryin= gMetaStoreClient.java:92) at org.apache.hadoop.hive.metastore.RetryingMetaStoreClient.getProxy(Retry= ingMetaStoreClient.java:138) at org.apache.hadoop.hive.metastore.RetryingMetaStoreClient.getProxy(Retry= ingMetaStoreClient.java:110) at org.apache.hadoop.hive.ql.metadata.Hive.createMetaStoreClient(Hive.java= :3526) at org.apache.hadoop.hive.ql.metadata.Hive.getMSC(Hive.java:3558) at org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:= 533) at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:681) at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:625) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja= va:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso= rImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.apache.hadoop.util.RunJar.run(RunJar.java:233) at org.apache.hadoop.util.RunJar.main(RunJar.java:148) ) at org.apache.hadoop.hive.metastore.HiveMetaStoreClient.open(HiveMetaStore= Client.java:534) at org.apache.hadoop.hive.metastore.HiveMetaStoreClient.(HiveMetaSto= reClient.java:282) at org.apache.hadoop.hive.ql.metadata.SessionHiveMetaStoreClient.(Se= ssionHiveMetaStoreClient.java:76) ... 19 more [root@hive ~]# =C2=A0 got from=C2=A0/var/log/hive/hiveserver2.log : 2018-02-28 17:07:24,671 INFO [HiveServer2-Handler-Pool: Thread-45]: thrift.= ThriftCLIService (ThriftCLIService.java:OpenSession(316)) - Client protocol= version: HIVE_CLI_SERVICE_PROTOCOL_V8 2018-02-28 17:07:24,671 INFO [HiveServer2-Handler-Pool: Thread-45]: metast= ore.HiveMetaStore (HiveMetaStore.java:logInfo(773)) - 1: Shutting down the = object store... 2018-02-28 17:07:24,671 INFO [HiveServer2-Handler-Pool: Thread-45]: HiveMe= taStore.audit (HiveMetaStore.java:logAuditEvent(317)) - ugi=3Dhive/hive.tes= t@EXAMPLE.COM ip=3Dunknown-ip-addr cmd=3DShutting down the object store...= =20 2018-02-28 17:07:24,672 INFO [HiveServer2-Handler-Pool: Thread-45]: metast= ore.HiveMetaStore (HiveMetaStore.java:logInfo(773)) - 1: Metastore shutdown= complete. 2018-02-28 17:07:24,672 INFO [HiveServer2-Handler-Pool: Thread-45]: HiveMe= taStore.audit (HiveMetaStore.java:logAuditEvent(317)) - ugi=3Dhive/hive.tes= t@EXAMPLE.COM ip=3Dunknown-ip-addr cmd=3DMetastore shutdown complete.=20 2018-02-28 17:07:24,672 INFO [HiveServer2-Handler-Pool: Thread-45]: metast= ore.HiveMetaStore (HiveMetaStore.java:init(453)) - Begin calculating metada= ta count metrics. 2018-02-28 17:07:24,816 WARN [HiveServer2-Handler-Pool: Thread-45]: conf.H= iveConf (HiveConf.java:initialize(3093)) - HiveConf of name hive.internal.s= s.authz.settings.applied.marker does not exist 2018-02-28 17:07:24,820 INFO [HiveServer2-Handler-Pool: Thread-45]: metast= ore.HiveMetaStore (HiveMetaStore.java:newRawStoreForConf(619)) - 1: Opening= raw store with implementation class:org.apache.hadoop.hive.metastore.Objec= tStore 2018-02-28 17:07:24,852 INFO [HiveServer2-Handler-Pool: Thread-45]: metast= ore.ObjectStore (ObjectStore.java:initializeHelper(383)) - ObjectStore, ini= tialize called 2018-02-28 17:07:24,981 WARN [HiveServer2-Handler-Pool: Thread-45]: conf.H= iveConf (HiveConf.java:initialize(3093)) - HiveConf of name hive.internal.s= s.authz.settings.applied.marker does not exist 2018-02-28 17:07:24,986 INFO [HiveServer2-Handler-Pool: Thread-45]: metast= ore.MetaStoreDirectSql (MetaStoreDirectSql.java:(163)) - Using direct= SQL, underlying DB is OTHER 2018-02-28 17:07:24,986 INFO [HiveServer2-Handler-Pool: Thread-45]: metast= ore.ObjectStore (ObjectStore.java:setConf(297)) - Initialized ObjectStore 2018-02-28 17:07:24,990 INFO [HiveServer2-Handler-Pool: Thread-45]: metast= ore.HiveMetaStore (HiveMetaStore.java:init(455)) - Finished metadata count = metrics: 1 databases, 0 tables, 0 partitions. 2018-02-28 17:07:24,991 WARN [HiveServer2-Handler-Pool: Thread-45]: metric= s2.CodahaleMetrics (CodahaleMetrics.java:addGauge(299)) - A Gauge with name= [init_total_count_dbs] already exists. The old gauge will be overwritten, = but this is not recommended 2018-02-28 17:07:24,991 WARN [HiveServer2-Handler-Pool: Thread-45]: metric= s2.CodahaleMetrics (CodahaleMetrics.java:addGauge(299)) - A Gauge with name= [init_total_count_tables] already exists. The old gauge will be overwritte= n, but this is not recommended 2018-02-28 17:07:24,991 WARN [HiveServer2-Handler-Pool: Thread-45]: metric= s2.CodahaleMetrics (CodahaleMetrics.java:addGauge(299)) - A Gauge with name= [init_total_count_partitions] already exists. The old gauge will be overwr= itten, but this is not recommended 2018-02-28 17:07:25,014 INFO [HiveServer2-Handler-Pool: Thread-45]: metast= ore.ObjectStore (ObjectStore.java:initializeHelper(383)) - ObjectStore, ini= tialize called 2018-02-28 17:07:25,171 WARN [HiveServer2-Handler-Pool: Thread-45]: conf.H= iveConf (HiveConf.java:initialize(3093)) - HiveConf of name hive.internal.s= s.authz.settings.applied.marker does not exist 2018-02-28 17:07:25,181 INFO [HiveServer2-Handler-Pool: Thread-45]: metast= ore.MetaStoreDirectSql (MetaStoreDirectSql.java:(163)) - Using direct= SQL, underlying DB is OTHER 2018-02-28 17:07:25,181 INFO [HiveServer2-Handler-Pool: Thread-45]: metast= ore.ObjectStore (ObjectStore.java:setConf(297)) - Initialized ObjectStore 2018-02-28 17:07:25,182 INFO [HiveServer2-Handler-Pool: Thread-45]: metast= ore.HiveMetaStore (HiveMetaStore.java:init(453)) - Begin calculating metada= ta count metrics. 2018-02-28 17:07:25,185 INFO [HiveServer2-Handler-Pool: Thread-45]: metast= ore.HiveMetaStore (HiveMetaStore.java:init(455)) - Finished metadata count = metrics: 1 databases, 0 tables, 0 partitions. 2018-02-28 17:07:25,185 WARN [HiveServer2-Handler-Pool: Thread-45]: metric= s2.CodahaleMetrics (CodahaleMetrics.java:addGauge(299)) - A Gauge with name= [init_total_count_dbs] already exists. The old gauge will be overwritten, = but this is not recommended 2018-02-28 17:07:25,185 WARN [HiveServer2-Handler-Pool: Thread-45]: metric= s2.CodahaleMetrics (CodahaleMetrics.java:addGauge(299)) - A Gauge with name= [init_total_count_tables] already exists. The old gauge will be overwritte= n, but this is not recommended 2018-02-28 17:07:25,185 WARN [HiveServer2-Handler-Pool: Thread-45]: metric= s2.CodahaleMetrics (CodahaleMetrics.java:addGauge(299)) - A Gauge with name= [init_total_count_partitions] already exists. The old gauge will be overwr= itten, but this is not recommended 2018-02-28 17:07:25,219 INFO [HiveServer2-Handler-Pool: Thread-45]: sessio= n.SessionState (SessionState.java:createPath(682)) - Created local director= y: /tmp/7645338b-a770-4ee8-8eb4-5ffe663652e0_resources 2018-02-28 17:07:25,259 INFO [HiveServer2-Handler-Pool: Thread-45]: sessio= n.SessionState (SessionState.java:createPath(682)) - Created HDFS directory= : /tmp/hive/ambari-qa/7645338b-a770-4ee8-8eb4-5ffe663652e0 2018-02-28 17:07:25,261 INFO [HiveServer2-Handler-Pool: Thread-45]: sessio= n.SessionState (SessionState.java:createPath(682)) - Created local director= y: /tmp/hive/7645338b-a770-4ee8-8eb4-5ffe663652e0 2018-02-28 17:07:25,284 INFO [HiveServer2-Handler-Pool: Thread-45]: sessio= n.SessionState (SessionState.java:createPath(682)) - Created HDFS directory= : /tmp/hive/ambari-qa/7645338b-a770-4ee8-8eb4-5ffe663652e0/_tmp_space.db 2018-02-28 17:07:25,286 INFO [HiveServer2-Handler-Pool: Thread-45]: sessio= n.HiveSessionImpl (HiveSessionImpl.java:setOperationLogSessionDir(274)) - O= peration log session directory is created: /tmp/hive/operation_logs/7645338= b-a770-4ee8-8eb4-5ffe663652e0 > ambari-hive-kerberos-cli > ------------------------ > > Key: AMBARI-23104 > URL: https://issues.apache.org/jira/browse/AMBARI-23104 > Project: Ambari > Issue Type: Story > Components: amvari-me > Environment: centos6.8=C2=A0 hdp-2.6.3.0=C2=A0 > Reporter: yuandeqiao > Priority: Major > Labels: hive, kerberos > > =C2=A0 > hive cli : > I used to enter hive cil by=E2=80=9Cmkdir/...=E2=80=9D. While now , it do= esn't work when the kerbores is in operation. And it prompt: > [root@hive ~]# sudo -u hive hive > log4j:WARN No such property [maxFileSize] in org.apache.log4j.DailyRolli= ngFileAppender. > Logging initialized using configuration in [file:/etc/hive/2.6.3.0-235/0/= hive-log4j.properties|file://etc/hive/2.6.3.0-235/0/hive-log4j.properties] > Exception in thread "main" java.lang.RuntimeException: java.lang.Runtime= Exception: Unable to instantiate org.apache.hadoop.hive.ql.metadata.Session= HiveMetaStoreClient > at org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.jav= a:552) > at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:681) > at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:625) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.= java:62) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces= sorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:498) > at org.apache.hadoop.util.RunJar.run(RunJar.java:233) > at org.apache.hadoop.util.RunJar.main(RunJar.java:148) > Caused by: java.lang.RuntimeException: Unable to instantiate org.apache.= hadoop.hive.ql.metadata.SessionHiveMetaStoreClient > at org.apache.hadoop.hive.metastore.MetaStoreUtils.newInstance(MetaStore= Utils.java:1566) > at org.apache.hadoop.hive.metastore.RetryingMetaStoreClient.(Retry= ingMetaStoreClient.java:92) > at org.apache.hadoop.hive.metastore.RetryingMetaStoreClient.getProxy(Ret= ryingMetaStoreClient.java:138) > at org.apache.hadoop.hive.metastore.RetryingMetaStoreClient.getProxy(Ret= ryingMetaStoreClient.java:110) > at org.apache.hadoop.hive.ql.metadata.Hive.createMetaStoreClient(Hive.ja= va:3526) > at org.apache.hadoop.hive.ql.metadata.Hive.getMSC(Hive.java:3558) > at org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.jav= a:533) > ... 8 more > Caused by: java.lang.reflect.InvocationTargetException > at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) > at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct= orAccessorImpl.java:62) > at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC= onstructorAccessorImpl.java:45) > at java.lang.reflect.Constructor.newInstance(Constructor.java:423) > at org.apache.hadoop.hive.metastore.MetaStoreUtils.newInstance(MetaStore= Utils.java:1564) > ... 14 more > Caused by: MetaException(message:Could not connect to meta store using a= ny of the URIs provided. Most recent failure: org.apache.thrift.transport.T= TransportException: GSS initiate failed > at org.apache.thrift.transport.TSaslTransport.sendAndThrowMessage(TSaslT= ransport.java:232) > at org.apache.thrift.transport.TSaslTransport.open(TSaslTransport.java:3= 16) > at org.apache.thrift.transport.TSaslClientTransport.open(TSaslClientTran= sport.java:37) > at org.apache.hadoop.hive.thrift.client.TUGIAssumingTransport$1.run(TUGI= AssumingTransport.java:52) > at org.apache.hadoop.hive.thrift.client.TUGIAssumingTransport$1.run(TUGI= AssumingTransport.java:49) > at java.security.AccessController.doPrivileged(Native Method) > at javax.security.auth.Subject.doAs(Subject.java:422) > at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInforma= tion.java:1866) > at org.apache.hadoop.hive.thrift.client.TUGIAssumingTransport.open(TUGIA= ssumingTransport.java:49) > at org.apache.hadoop.hive.metastore.HiveMetaStoreClient.open(HiveMetaSto= reClient.java:487) > at org.apache.hadoop.hive.metastore.HiveMetaStoreClient.(HiveMetaS= toreClient.java:282) > at org.apache.hadoop.hive.ql.metadata.SessionHiveMetaStoreClient.(= SessionHiveMetaStoreClient.java:76) > at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) > at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct= orAccessorImpl.java:62) > at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC= onstructorAccessorImpl.java:45) > at java.lang.reflect.Constructor.newInstance(Constructor.java:423) > at org.apache.hadoop.hive.metastore.MetaStoreUtils.newInstance(MetaStore= Utils.java:1564) > at org.apache.hadoop.hive.metastore.RetryingMetaStoreClient.(Retry= ingMetaStoreClient.java:92) > at org.apache.hadoop.hive.metastore.RetryingMetaStoreClient.getProxy(Ret= ryingMetaStoreClient.java:138) > at org.apache.hadoop.hive.metastore.RetryingMetaStoreClient.getProxy(Ret= ryingMetaStoreClient.java:110) > at org.apache.hadoop.hive.ql.metadata.Hive.createMetaStoreClient(Hive.ja= va:3526) > at org.apache.hadoop.hive.ql.metadata.Hive.getMSC(Hive.java:3558) > at org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.jav= a:533) > at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:681) > at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:625) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.= java:62) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces= sorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:498) > at org.apache.hadoop.util.RunJar.run(RunJar.java:233) > at org.apache.hadoop.util.RunJar.main(RunJar.java:148) > ) > at org.apache.hadoop.hive.metastore.HiveMetaStoreClient.open(HiveMetaSto= reClient.java:534) > at org.apache.hadoop.hive.metastore.HiveMetaStoreClient.(HiveMetaS= toreClient.java:282) > at org.apache.hadoop.hive.ql.metadata.SessionHiveMetaStoreClient.(= SessionHiveMetaStoreClient.java:76) > ... 19 more > [root@hive ~]# > =C2=A0 > got from=C2=A0/var/log/hive/hiveserver2.log : > 2018-02-28 17:07:24,671 INFO [HiveServer2-Handler-Pool: Thread-45]: thrif= t.ThriftCLIService (ThriftCLIService.java:OpenSession(316)) - Client protoc= ol version: HIVE_CLI_SERVICE_PROTOCOL_V8 > 2018-02-28 17:07:24,671 INFO [HiveServer2-Handler-Pool: Thread-45]: meta= store.HiveMetaStore (HiveMetaStore.java:logInfo(773)) - 1: Shutting down th= e object store... > 2018-02-28 17:07:24,671 INFO [HiveServer2-Handler-Pool: Thread-45]: Hive= MetaStore.audit (HiveMetaStore.java:logAuditEvent(317)) - ugi=3Dhive/hive.t= est@EXAMPLE.COM ip=3Dunknown-ip-addr cmd=3DShutting down the object store..= .=20 > 2018-02-28 17:07:24,672 INFO [HiveServer2-Handler-Pool: Thread-45]: meta= store.HiveMetaStore (HiveMetaStore.java:logInfo(773)) - 1: Metastore shutdo= wn complete. > 2018-02-28 17:07:24,672 INFO [HiveServer2-Handler-Pool: Thread-45]: Hive= MetaStore.audit (HiveMetaStore.java:logAuditEvent(317)) - ugi=3Dhive/hive.t= est@EXAMPLE.COM ip=3Dunknown-ip-addr cmd=3DMetastore shutdown complete.=20 > 2018-02-28 17:07:24,672 INFO [HiveServer2-Handler-Pool: Thread-45]: meta= store.HiveMetaStore (HiveMetaStore.java:init(453)) - Begin calculating meta= data count metrics. > 2018-02-28 17:07:24,816 WARN [HiveServer2-Handler-Pool: Thread-45]: conf= .HiveConf (HiveConf.java:initialize(3093)) - HiveConf of name hive.internal= .ss.authz.settings.applied.marker does not exist > 2018-02-28 17:07:24,820 INFO [HiveServer2-Handler-Pool: Thread-45]: meta= store.HiveMetaStore (HiveMetaStore.java:newRawStoreForConf(619)) - 1: Openi= ng raw store with implementation class:org.apache.hadoop.hive.metastore.Obj= ectStore > 2018-02-28 17:07:24,852 INFO [HiveServer2-Handler-Pool: Thread-45]: meta= store.ObjectStore (ObjectStore.java:initializeHelper(383)) - ObjectStore, i= nitialize called > 2018-02-28 17:07:24,981 WARN [HiveServer2-Handler-Pool: Thread-45]: conf= .HiveConf (HiveConf.java:initialize(3093)) - HiveConf of name hive.internal= .ss.authz.settings.applied.marker does not exist > 2018-02-28 17:07:24,986 INFO [HiveServer2-Handler-Pool: Thread-45]: meta= store.MetaStoreDirectSql (MetaStoreDirectSql.java:(163)) - Using dire= ct SQL, underlying DB is OTHER > 2018-02-28 17:07:24,986 INFO [HiveServer2-Handler-Pool: Thread-45]: meta= store.ObjectStore (ObjectStore.java:setConf(297)) - Initialized ObjectStore > 2018-02-28 17:07:24,990 INFO [HiveServer2-Handler-Pool: Thread-45]: meta= store.HiveMetaStore (HiveMetaStore.java:init(455)) - Finished metadata coun= t metrics: 1 databases, 0 tables, 0 partitions. > 2018-02-28 17:07:24,991 WARN [HiveServer2-Handler-Pool: Thread-45]: metr= ics2.CodahaleMetrics (CodahaleMetrics.java:addGauge(299)) - A Gauge with na= me [init_total_count_dbs] already exists. The old gauge will be overwritten= , but this is not recommended > 2018-02-28 17:07:24,991 WARN [HiveServer2-Handler-Pool: Thread-45]: metr= ics2.CodahaleMetrics (CodahaleMetrics.java:addGauge(299)) - A Gauge with na= me [init_total_count_tables] already exists. The old gauge will be overwrit= ten, but this is not recommended > 2018-02-28 17:07:24,991 WARN [HiveServer2-Handler-Pool: Thread-45]: metr= ics2.CodahaleMetrics (CodahaleMetrics.java:addGauge(299)) - A Gauge with na= me [init_total_count_partitions] already exists. The old gauge will be over= written, but this is not recommended > 2018-02-28 17:07:25,014 INFO [HiveServer2-Handler-Pool: Thread-45]: meta= store.ObjectStore (ObjectStore.java:initializeHelper(383)) - ObjectStore, i= nitialize called > 2018-02-28 17:07:25,171 WARN [HiveServer2-Handler-Pool: Thread-45]: conf= .HiveConf (HiveConf.java:initialize(3093)) - HiveConf of name hive.internal= .ss.authz.settings.applied.marker does not exist > 2018-02-28 17:07:25,181 INFO [HiveServer2-Handler-Pool: Thread-45]: meta= store.MetaStoreDirectSql (MetaStoreDirectSql.java:(163)) - Using dire= ct SQL, underlying DB is OTHER > 2018-02-28 17:07:25,181 INFO [HiveServer2-Handler-Pool: Thread-45]: meta= store.ObjectStore (ObjectStore.java:setConf(297)) - Initialized ObjectStore > 2018-02-28 17:07:25,182 INFO [HiveServer2-Handler-Pool: Thread-45]: meta= store.HiveMetaStore (HiveMetaStore.java:init(453)) - Begin calculating meta= data count metrics. > 2018-02-28 17:07:25,185 INFO [HiveServer2-Handler-Pool: Thread-45]: meta= store.HiveMetaStore (HiveMetaStore.java:init(455)) - Finished metadata coun= t metrics: 1 databases, 0 tables, 0 partitions. > 2018-02-28 17:07:25,185 WARN [HiveServer2-Handler-Pool: Thread-45]: metr= ics2.CodahaleMetrics (CodahaleMetrics.java:addGauge(299)) - A Gauge with na= me [init_total_count_dbs] already exists. The old gauge will be overwritten= , but this is not recommended > 2018-02-28 17:07:25,185 WARN [HiveServer2-Handler-Pool: Thread-45]: metr= ics2.CodahaleMetrics (CodahaleMetrics.java:addGauge(299)) - A Gauge with na= me [init_total_count_tables] already exists. The old gauge will be overwrit= ten, but this is not recommended > 2018-02-28 17:07:25,185 WARN [HiveServer2-Handler-Pool: Thread-45]: metr= ics2.CodahaleMetrics (CodahaleMetrics.java:addGauge(299)) - A Gauge with na= me [init_total_count_partitions] already exists. The old gauge will be over= written, but this is not recommended > 2018-02-28 17:07:25,219 INFO [HiveServer2-Handler-Pool: Thread-45]: sess= ion.SessionState (SessionState.java:createPath(682)) - Created local direct= ory: /tmp/7645338b-a770-4ee8-8eb4-5ffe663652e0_resources > 2018-02-28 17:07:25,259 INFO [HiveServer2-Handler-Pool: Thread-45]: sess= ion.SessionState (SessionState.java:createPath(682)) - Created HDFS directo= ry: /tmp/hive/ambari-qa/7645338b-a770-4ee8-8eb4-5ffe663652e0 > 2018-02-28 17:07:25,261 INFO [HiveServer2-Handler-Pool: Thread-45]: sess= ion.SessionState (SessionState.java:createPath(682)) - Created local direct= ory: /tmp/hive/7645338b-a770-4ee8-8eb4-5ffe663652e0 > 2018-02-28 17:07:25,284 INFO [HiveServer2-Handler-Pool: Thread-45]: sess= ion.SessionState (SessionState.java:createPath(682)) - Created HDFS directo= ry: /tmp/hive/ambari-qa/7645338b-a770-4ee8-8eb4-5ffe663652e0/_tmp_space.db > 2018-02-28 17:07:25,286 INFO [HiveServer2-Handler-Pool: Thread-45]: sess= ion.HiveSessionImpl (HiveSessionImpl.java:setOperationLogSessionDir(274)) -= Operation log session directory is created: /tmp/hive/operation_logs/76453= 38b-a770-4ee8-8eb4-5ffe663652e0 -- This message was sent by Atlassian JIRA (v7.6.3#76005)