Return-Path: X-Original-To: apmail-hive-user-archive@www.apache.org Delivered-To: apmail-hive-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5D16118A83 for ; Tue, 4 Aug 2015 15:17:32 +0000 (UTC) Received: (qmail 57602 invoked by uid 500); 4 Aug 2015 15:17:30 -0000 Delivered-To: apmail-hive-user-archive@hive.apache.org Received: (qmail 57531 invoked by uid 500); 4 Aug 2015 15:17:30 -0000 Mailing-List: contact user-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hive.apache.org Delivered-To: mailing list user@hive.apache.org Received: (qmail 57521 invoked by uid 99); 4 Aug 2015 15:17:30 -0000 Received: from Unknown (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Aug 2015 15:17:30 +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 33DC8DA4B5 for ; Tue, 4 Aug 2015 15:17:30 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -4.649 X-Spam-Level: X-Spam-Status: No, score=-4.649 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=3, KAM_UNSUB1=0.1, RP_MATCHES_RCVD=-0.149, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, USER_IN_DEF_DKIM_WL=-7.5] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (1024-bit key) header.d=cisco.com Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id LSgIJpgSArRv for ; Tue, 4 Aug 2015 15:17:17 +0000 (UTC) Received: from rcdn-iport-7.cisco.com (rcdn-iport-7.cisco.com [173.37.86.78]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id 3BB7843DEB for ; Tue, 4 Aug 2015 15:17:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=20277; q=dns/txt; s=iport; t=1438701437; x=1439911037; h=from:to:subject:date:message-id:references:in-reply-to: mime-version; bh=hGkAVnFi0sOsWtkorXKV7Vl0uJncjMMCTXA3WVgzDgM=; b=D4bxcK6oqtsMmvslj8W70IMPCQzLbQv9O+2q2WmhOu7+cSWKz2nhZoW1 iFlnUEpbGzJlF6jY39vngyyv4OCJxqqa4dpSpbystdnGsG2dZTTWrVsgI GjVCe8WaNU4tBMab1EPJoaljQ9Sl0oTHxg6kCw9c3GqsI53C2JcQJXI8C 0=; X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0BQAwDI1cBV/4wNJK1VAwOCTU1UaQa8YwmCBYJBgzYCgTQ4FAEBAQEBAQF/C4QjAQEBBC08AR8CAQgHCgMBAQEoBzIUCQgBAQQTFIgaDbZSlGgBAQEBAQEBAQEBAQEBAQEBAQEBAQEXgTaKGYQlEQEGCB0VARYBBgyCaYExBYcVAoU1gSqHBAGEfIdTgUdGg1yHDIxgJoIOHIFTbwGBBgcXI4EEAQEB X-IronPort-AV: E=Sophos;i="5.15,609,1432598400"; d="scan'208,217";a="15748274" Received: from alln-core-7.cisco.com ([173.36.13.140]) by rcdn-iport-7.cisco.com with ESMTP; 04 Aug 2015 15:15:09 +0000 Received: from XCH-RCD-004.cisco.com (xch-rcd-004.cisco.com [173.37.102.14]) by alln-core-7.cisco.com (8.14.5/8.14.5) with ESMTP id t74FF9CM012620 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=FAIL) for ; Tue, 4 Aug 2015 15:15:09 GMT Received: from xch-rcd-004.cisco.com (173.37.102.14) by XCH-RCD-004.cisco.com (173.37.102.14) with Microsoft SMTP Server (TLS) id 15.0.1076.9; Tue, 4 Aug 2015 10:15:08 -0500 Received: from xhc-aln-x04.cisco.com (173.36.12.78) by xch-rcd-004.cisco.com (173.37.102.14) with Microsoft SMTP Server (TLS) id 15.0.1076.9 via Frontend Transport; Tue, 4 Aug 2015 10:15:08 -0500 Received: from xmb-rcd-x03.cisco.com ([169.254.7.75]) by xhc-aln-x04.cisco.com ([173.36.12.78]) with mapi id 14.03.0248.002; Tue, 4 Aug 2015 10:15:08 -0500 From: "Grant Overby (groverby)" To: "user@hive.apache.org" Subject: Re: start hiveserver2 failed need help Thread-Topic: start hiveserver2 failed need help Thread-Index: AdDOLzCDcq48rI/IQB6j+TSbupKRZQAA2nSAAAAKeoAAJ4TZAA== Date: Tue, 4 Aug 2015 15:15:07 +0000 Message-ID: References: <93698e3bc8e344b78a7b91e94d94c210@WS-NCE-EXD-02.neces.com> In-Reply-To: <93698e3bc8e344b78a7b91e94d94c210@WS-NCE-EXD-02.neces.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [173.36.7.28] Content-Type: multipart/alternative; boundary="_000_D1E64D201AC0Agroverbyciscocom_" MIME-Version: 1.0 --_000_D1E64D201AC0Agroverbyciscocom_ Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable Looks like the user running hiveserver2 didn=92t have permission (local fil= e system) to write to the directory specified by HiveConf.ConfVars.LOCALSCR= ATCHDIR . The default scratch directory is: =93${system:java.io.tmpdir}=94 = + File.separator + =93${system:user.name}=94 , so it=92s unusual to see thi= s error. Looks like the user either overwrote the above conf or did somethi= ng unusual to his system. [http://www.cisco.com/web/europe/images/email/signature/est2014/logo_06.png= ?ct=3D1398192119726] Grant Overby Software Engineer Cisco.com groverby@cisco.com Mobile: 865 724 4910 [http://www.cisco.com/assets/swa/img/thinkbeforeyouprint.gif] Think before = you print. This email may contain confidential and privileged material for the sole us= e of the intended recipient. Any review, use, distribution or disclosure by= others is strictly prohibited. If you are not the intended recipient (or a= uthorized to receive for the recipient), please contact the sender by reply= email and delete all copies of this message. Please click here for Company Registration Information. From: Gary Clark > Reply-To: "user@hive.apache.org" > Date: Monday, August 3, 2015 at 5:25 PM To: "user@hive.apache.org" > Subject: RE: start hiveserver2 failed need help For the sake of the hive user community could you post how you resolve it := ) Thanks, Gary Clark From: Garry Chen [mailto:gc92@cornell.edu] Sent: Monday, August 03, 2015 4:24 PM To: user@hive.apache.org Subject: RE: start hiveserver2 failed need help I found the problem and case solved. Garry From: Garry Chen [mailto:gc92@cornell.edu] Sent: Monday, August 03, 2015 5:01 PM To: user@hive.apache.org Subject: start hiveserver2 failed need help Hi all, When I try to start hiveserer2 failed with following error. It= was running but after the server reboot hiveeserver2 will not start. Pleas= e help. Thank you very much. Garry 2015-08-03 16:57:07,677 WARN [main]: server.HiveServer2 (HiveServer2.java:= startHiveServer2(330)) - Error starting HiveServer2 on attempt 1, will retr= y in 60 seconds java.lang.RuntimeException: java.lang.RuntimeException: java.io.IOException= : Permission denied at org.apache.hadoop.hive.ql.session.SessionState.start(SessionStat= e.java:472) at org.apache.hive.service.cli.CLIService.applyAuthorizationConfigP= olicy(CLIService.java:124) at org.apache.hive.service.cli.CLIService.init(CLIService.java:111) at org.apache.hive.service.CompositeService.init(CompositeService.j= ava:59) at org.apache.hive.service.server.HiveServer2.init(HiveServer2.java= :92) at org.apache.hive.service.server.HiveServer2.startHiveServer2(Hive= Server2.java:309) at org.apache.hive.service.server.HiveServer2.access$400(HiveServer= 2.java:68) at org.apache.hive.service.server.HiveServer2$StartOptionExecutor.e= xecute(HiveServer2.java:523) at org.apache.hive.service.server.HiveServer2.main(HiveServer2.java= :396) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessor= Impl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethod= AccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.apache.hadoop.util.RunJar.run(RunJar.java:221) at org.apache.hadoop.util.RunJar.main(RunJar.java:136) Caused by: java.lang.RuntimeException: java.io.IOException: Permission deni= ed at org.apache.hadoop.hive.ql.session.SessionState.start(SessionStat= e.java:465) ... 14 more Caused by: java.io.IOException: Permission denied at java.io.UnixFileSystem.createFileExclusively(Native Method) at java.io.File.createNewFile(File.java:1006) at java.io.File.createTempFile(File.java:1989) at org.apache.hadoop.hive.ql.session.SessionState.createTempFile(Se= ssionState.java:740) at org.apache.hadoop.hive.ql.session.SessionState.start(SessionStat= e.java:463) ... 14 more 2015-08-03 16:57:07,678 INFO [main]: server.HiveServer2 (HiveServer2.java:= stop(269)) - Shutting down HiveServer2 --_000_D1E64D201AC0Agroverbyciscocom_ Content-Type: text/html; charset="Windows-1252" Content-ID: <8B594477420C1F40A115DBEE93741A5E@emea.cisco.com> Content-Transfer-Encoding: quoted-printable
Looks like the user running hiveserver2 didn=92t have permission (loca= l file system) to write to the directory specified by HiveConf.ConfVar= s.LOCALSCRATCHDIR . The default scratch directory is: =93${system:java= .io.tmpdir}=94 + File.separator + =93${system:user.name}=94 , so it=92s unusual to see this error. Looks like the user either overwrot= e the above conf or did something unusual to his system.

Grant Overby
Software Engineer
Cisco.com
groverby@cisco.com
Mobile: 865 724 4910



 Think before you print.

This email may contain confidential and privileged material for the sole= use of the intended recipient. Any review, use, distribution or disclosure= by others is strictly prohibited. If you are not the intended recipient (o= r authorized to receive for the recipient), please contact the sender by reply email and delete all copies= of this message.

Please click here for Company Registration Information.




From: Gary Clark <gclark@neces.com>
Reply-To: "user@hive.apache.org" <user@hive.apache.org>
Date: Monday, August 3, 2015 at 5:2= 5 PM
To: "user@hive.apache.org" <user@hive.apache.org>
Subject: RE: start hiveserver2 fail= ed need help

For the sake of the hive user commu= nity could you post how you resolve it J

 

Thanks,

Gary Clark

 

From: Garry Chen [ma= ilto:gc92@cornell.edu]
Sent: Monday, August 03, 2015 4:24 PM
To: user@hive.apache.org=
Subject: RE: start hiveserver2 failed need help

 

I found the problem and case solved= .

 

Garry

 

From: Garry Chen [= mailto:gc92@cornell.edu]
Sent: Monday, August 03, 2015 5:01 PM
To: user@hive.apache.org=
Subject: start hiveserver2 failed need help

 

Hi all,

   &nbs= p;        When I try to start hiveserer2= failed with following error.  It was running but after the server reb= oot hiveeserver2 will not start. Please help.  Thank you very much.

Garry

 

2015-08-03 16:57:07,67= 7 WARN  [main]: server.HiveServer2 (HiveServer2.java:startHiveServer2(= 330)) - Error starting HiveServer2 on attempt 1, will retry in 60 seconds

java.lang.RuntimeExcep= tion: java.lang.RuntimeException: java.io.IOException: Permission denied
    &= nbsp;   at org.apache.hadoop.hive.ql.session.SessionState.start(S= essionState.java:472)
    &= nbsp;   at org.apache.hive.service.cli.CLIService.applyAuthorizat= ionConfigPolicy(CLIService.java:124)
    &= nbsp;   at org.apache.hive.service.cli.CLIService.init(CLIService= .java:111)
    &= nbsp;   at org.apache.hive.service.CompositeService.init(Composit= eService.java:59)
    &= nbsp;   at org.apache.hive.service.server.HiveServer2.init(HiveSe= rver2.java:92)
    &= nbsp;   at org.apache.hive.service.server.HiveServer2.startHiveSe= rver2(HiveServer2.java:309)
    &= nbsp;   at org.apache.hive.service.server.HiveServer2.access$400(= HiveServer2.java:68)
    &= nbsp;   at org.apache.hive.service.server.HiveServer2$StartOption= Executor.execute(HiveServer2.java:523)
    &= nbsp;   at org.apache.hive.service.server.HiveServer2.main(HiveSe= rver2.java:396)
    &= nbsp;   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Me= thod)
    &= nbsp;   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMeth= odAccessorImpl.java:57)
    &= nbsp;   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Delega= tingMethodAccessorImpl.java:43)
    &= nbsp;   at java.lang.reflect.Method.invoke(Method.java:606)
    &= nbsp;   at org.apache.hadoop.util.RunJar.run(RunJar.java:221)
    &= nbsp;   at org.apache.hadoop.util.RunJar.main(RunJar.java:136)
Caused by: java.lang.Runt= imeException: java.io.IOException: Permission denied
    &= nbsp;   at org.apache.hadoop.hive.ql.session.SessionState.start(S= essionState.java:465)
    &= nbsp;   ... 14 more
Caused by: java.io.IOExce= ption: Permission denied
    &= nbsp;   at java.io.UnixFileSystem.createFileExclusively(Native Me= thod)
    &= nbsp;   at java.io.File.createNewFile(File.java:1006)
    &= nbsp;   at java.io.File.createTempFile(File.java:1989)
    &= nbsp;   at org.apache.hadoop.hive.ql.session.SessionState.createT= empFile(SessionState.java:740)
    &= nbsp;   at org.apache.hadoop.hive.ql.session.SessionState.start(S= essionState.java:463)
    &= nbsp;   ... 14 more
2015-08-03 16:57:07,678 I= NFO  [main]: server.HiveServer2 (HiveServer2.java:stop(269)) - Shuttin= g down HiveServer2

--_000_D1E64D201AC0Agroverbyciscocom_--