Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 940C2200B81 for ; Fri, 5 Aug 2016 15:07:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 92CED160AAC; Fri, 5 Aug 2016 13:07:22 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 83659160A6D for ; Fri, 5 Aug 2016 15:07:21 +0200 (CEST) Received: (qmail 95255 invoked by uid 500); 5 Aug 2016 13:07:20 -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 95227 invoked by uid 99); 5 Aug 2016 13:07:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Aug 2016 13:07:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 8A14C2C0059 for ; Fri, 5 Aug 2016 13:07:20 +0000 (UTC) Date: Fri, 5 Aug 2016 13:07:20 +0000 (UTC) From: "Dmitry Lysnichenko (JIRA)" To: issues@ambari.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (AMBARI-18038) HBase start failing with API MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 05 Aug 2016 13:07:22 -0000 [ https://issues.apache.org/jira/browse/AMBARI-18038?page=3Dcom.atlass= ian.jira.plugin.system.issuetabpanels:all-tabpanel ] Dmitry Lysnichenko resolved AMBARI-18038. ----------------------------------------- Resolution: Fixed Committed 2ed0fa8..264bb25 branch-2.4 -> branch-2.4 c63b34c..3e3285d trunk -> trunk > HBase start failing with API > ---------------------------- > > Key: AMBARI-18038 > URL: https://issues.apache.org/jira/browse/AMBARI-18038 > Project: Ambari > Issue Type: Bug > Components: ambari-server > Affects Versions: 2.4.0 > Reporter: Shreya Bhat > Assignee: Dmitry Lysnichenko > Priority: Critical > Labels: system_test > Fix For: 2.4.0 > > > UrlPath : /api/v1/clusters/cl1 > Using username : admin > Request body : {"RequestInfo":{"command":"RESTART","context":"Restart al= l required services","operation_level":"host_component"},"Requests/resource= _filters":[{"hosts_predicate":"HostRoles/stale_configs=3Dtrue"}]} > Failed task : > {code} > "Traceback (most recent call last):\n File \"/var/lib/ambari-agent/cache= /common-services/HBASE/0.96.0.2.0/package/scripts/hbase_regionserver.py\", = line 194, in \n HbaseRegionServer().execute()\n File \"/usr/lib= /python2.6/site-packages/resource_management/libraries/script/script.py\", = line 280, in execute\n method(env)\n File \"/usr/lib/python2.6/site-pac= kages/resource_management/libraries/script/script.py\", line 720, in restar= t\n self.start(env, upgrade_type=3Dupgrade_type)\n File \"/var/lib/amba= ri-agent/cache/common-services/HBASE/0.96.0.2.0/package/scripts/hbase_regio= nserver.py\", line 120, in start\n self.post_start(env, upgrade_type=3Du= pgrade_type)\n File \"/var/lib/ambari-agent/cache/common-services/HBASE/0.= 96.0.2.0/package/scripts/hbase_regionserver.py\", line 89, in post_start\n = self.apply_atlas_acl(params.hbase_user)\n File \"/var/lib/ambari-agent/= cache/common-services/HBASE/0.96.0.2.0/package/scripts/hbase_regionserver.p= y\", line 110, in apply_atlas_acl\n shell.checked_call(format(\"{kinit_c= md}; {permissions_cmd}\"), tries=3D10, try_sleep=3D10)\n File \"/usr/lib/p= ython2.6/site-packages/resource_management/core/shell.py\", line 71, in inn= er\n result =3D function(command, **kwargs)\n File \"/usr/lib/python2.6= /site-packages/resource_management/core/shell.py\", line 93, in checked_cal= l\n tries=3Dtries, try_sleep=3Dtry_sleep)\n File \"/usr/lib/python2.6/s= ite-packages/resource_management/core/shell.py\", line 141, in _call_wrappe= r\n result =3D _call(command, **kwargs_copy)\n File \"/usr/lib/python2.= 6/site-packages/resource_management/core/shell.py\", line 294, in _call\n = raise Fail(err_msg)\nresource_management.core.exceptions.Fail: Execution = of '/usr/bin/kinit -kt /etc/security/keytabs/hbase.service.keytab hbase/nat= -r6-ohis-ambari-api-rbac-6-2.openstacklocal@EXAMPLE.COM; echo \"grant 'atla= s', 'RWXCA'\" | hbase shell -n' returned 1. kinit: Permission denied while = getting initial credentials\n2016-08-05 04:29:14,573 FATAL [main] conf.Conf= iguration: error parsing conf core-site.xml\njava.io.FileNotFoundException:= /etc/hbase/2.5.0.0-1145/0/core-site.xml (Permission denied)\n\tat java.io.= FileInputStream.open0(Native Method)\n\tat java.io.FileInputStream.open(Fil= eInputStream.java:195)\n\tat java.io.FileInputStream.(FileInputStream= .java:138)\n\tat java.io.FileInputStream.(FileInputStream.java:93)\n\= tat sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.j= ava:90)\n\tat sun.net.www.protocol.file.FileURLConnection.getInputStream(Fi= leURLConnection.java:188)\n\tat java.net.URL.openStream(URL.java:1045)\n\ta= t org.apache.hadoop.conf.Configuration.parse(Configuration.java:2502)\n\tat= org.apache.hadoop.conf.Configuration.loadResource(Configuration.java:2573)= \n\tat org.apache.hadoop.conf.Configuration.loadResources(Configuration.jav= a:2526)\n\tat org.apache.hadoop.conf.Configuration.getProps(Configuration.j= ava:2418)\n\tat org.apache.hadoop.conf.Configuration.set(Configuration.java= :1143)\n\tat org.apache.hadoop.conf.Configuration.set(Configuration.java:11= 15)\n\tat org.apache.hadoop.conf.Configuration.setBoolean(Configuration.jav= a:1451)\n\tat org.apache.hadoop.hbase.io.compress.Compression$Algorithm.(Compression.java:249)\n\tat org.apache.hadoop.hbase.io.compress.Compres= sion$Algorithm.(Compression.java:105)\n\tat org.apache.hadoop.hbase.i= o.compress.Compression$Algorithm$1.(Compression.java:106)\n\tat org.a= pache.hadoop.hbase.io.compress.Compression$Algorithm.(Compression.j= ava:106)\n\tat org.apache.hadoop.hbase.HColumnDescriptor.(HColumnDe= scriptor.java:135)\n\tat java.lang.Class.forName0(Native Method)\n\tat java= .lang.Class.forName(Class.java:348)\n\tat org.jruby.javasupport.JavaSupport= .loadJavaClass(JavaSupport.java:136)\n\tat org.jruby.javasupport.JavaSuppor= t.loadJavaClassVerbose(JavaSupport.java:145)\n\tat org.jruby.javasupport.Ja= vaClass.forNameVerbose(JavaClass.java:1193)\n\tat org.jruby.javasupport.Jav= a.getProxyOrPackageUnderPackage(Java.java:914)\n\tat org.jruby.javasupport.= Java.get_proxy_or_package_under_package(Java.java:947)\n\tat org.jruby.java= support.JavaUtilities.get_proxy_or_package_under_package(JavaUtilities.java= :54)\n\tat org.jruby.javasupport.JavaUtilities$s$2$0$get_proxy_or_package_u= nder_package.call(JavaUtilities$s$2$0$get_proxy_or_package_under_package.ge= n:65535)\n\tat org.jruby.runtime.callsite.CachingCallSite.call(CachingCallS= ite.java:201)\n\tat org.jruby.ast.CallTwoArgNode.interpret(CallTwoArgNode.j= ava:59)\n\tat org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)\n\t= at org.jruby.ast.BlockNode.interpret(BlockNode.java:71)\n\tat org.jruby.eva= luator.ASTInterpreter.INTERPRET_METHOD(ASTInterpreter.java:74)\n\tat org.jr= uby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:= 120)\n\tat org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMet= hod.java:165)\n\tat org.jruby.javasupport.util.RuntimeHelpers$MethodMissing= Method.call(RuntimeHelpers.java:497)\n\tat org.jruby.internal.runtime.metho= ds.DynamicMethod.call(DynamicMethod.java:203)\n\tat org.jruby.runtime.calls= ite.CachingCallSite.callMethodMissing(CachingCallSite.java:379)\n\tat org.j= ruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:289= )\n\tat org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.jav= a:135)\n\tat org.jruby.ast.CallNoArgNode.interpret(CallNoArgNode.java:63)\n= \tat org.jruby.ast.CallNoArgNode.interpret(CallNoArgNode.java:63)\n\tat org= .jruby.ast.FCallOneArgNode.interpret(FCallOneArgNode.java:36)\n\tat org.jru= by.ast.NewlineNode.interpret(NewlineNode.java:104)\n\tat org.jruby.ast.Bloc= kNode.interpret(BlockNode.java:71)\n\tat org.jruby.evaluator.ASTInterpreter= .INTERPRET_CLASS(ASTInterpreter.java:103)\n\tat org.jruby.evaluator.ASTInte= rpreter.evalClassDefinitionBody(ASTInterpreter.java:260)\n\tat org.jruby.as= t.ModuleNode.interpret(ModuleNode.java:120)\n\tat org.jruby.ast.NewlineNode= .interpret(NewlineNode.java:104)\n\tat org.jruby.ast.BlockNode.interpret(Bl= ockNode.java:71)\n\tat org.jruby.ast.RootNode.interpret(RootNode.java:129)\= n\tat org.jruby.evaluator.ASTInterpreter.INTERPRET_ROOT(ASTInterpreter.java= :119)\n\tat org.jruby.Ruby.runInterpreter(Ruby.java:724)\n\tat org.jruby.Ru= by.loadFile(Ruby.java:2489)\n\tat org.jruby.runtime.load.ExternalScript.loa= d(ExternalScript.java:66)\n\tat org.jruby.runtime.load.LoadService.tryLoadi= ngLibraryOrScript(LoadService.java:751)\n\tat org.jruby.runtime.load.LoadSe= rvice.smartLoad(LoadService.java:332)\n\tat org.jruby.runtime.load.LoadServ= ice.require(LoadService.java:381)\n\tat org.jruby.runtime.load.LoadService.= lockAndRequire(LoadService.java:304)\n\tat org.jruby.RubyKernel.requireComm= on(RubyKernel.java:1079)\n\tat org.jruby.RubyKernel.require(RubyKernel.java= :1062)\n\tat org.jruby.RubyKernel$s$1$0$require.call(RubyKernel$s$1$0$requi= re.gen:65535)\n\tat org.jruby.internal.runtime.methods.JavaMethod$JavaMetho= dOneOrNBlock.call(JavaMethod.java:319)\n\tat org.jruby.runtime.callsite.Cac= hingCallSite.cacheAndCall(CachingCallSite.java:312)\n\tat org.jruby.runtime= .callsite.CachingCallSite.call(CachingCallSite.java:169)\n\tat usr.hdp.$2_d= ot_5_dot_0_dot_0_minus_1145.hbase.bin.hirb.__file__(/usr/hdp/2.5.0.0-1145/h= base/bin/hirb.rb:118)\n\tat usr.hdp.$2_dot_5_dot_0_dot_0_minus_1145.hbase.b= in.hirb.load(/usr/hdp/2.5.0.0-1145/hbase/bin/hirb.rb)\n\tat org.jruby.Ruby.= runScript(Ruby.java:697)\n\tat org.jruby.Ruby.runScript(Ruby.java:690)\n\ta= t org.jruby.Ruby.runNormally(Ruby.java:597)\n\tat org.jruby.Ruby.runFromMai= n(Ruby.java:446)\n\tat org.jruby.Main.doRunFromMain(Main.java:369)\n\tat or= g.jruby.Main.internalRun(Main.java:258)\n\tat org.jruby.Main.run(Main.java:= 224)\n\tat org.jruby.Main.run(Main.java:208)\n\tat org.jruby.Main.main(Main= .java:188)\nNameError: cannot initialize Java class org.apache.hadoop.hbase= .HColumnDescriptor\n get_proxy_or_package_under_package at org/jruby/javas= upport/JavaUtilities.java:54\n method_missing at file:= /grid/0/hdp/2.5.0.0-1145/hbase/lib/jruby-complete-1.6.8.jar!/builtin/javasu= pport/java.rb:51\n HBaseConstants at /usr/hdp/2.5.0.0-= 1145/hbase/lib/ruby/hbase.rb:91\n (root) at /u= sr/hdp/2.5.0.0-1145/hbase/lib/ruby/hbase.rb:34\n = require at org/jruby/RubyKernel.java:1062\n = (root) at /usr/hdp/2.5.0.0-1145/hbase/bin/hirb.rb:118\n2016-08-05 04:29:14,= 697 FATAL [Thread-1] conf.Configuration: error parsing conf core-site.xml\n= java.io.FileNotFoundException: /etc/hbase/2.5.0.0-1145/0/core-site.xml (Per= mission denied)\n\tat java.io.FileInputStream.open0(Native Method)\n\tat ja= va.io.FileInputStream.open(FileInputStream.java:195)\n\tat java.io.FileInpu= tStream.(FileInputStream.java:138)\n\tat java.io.FileInputStream.(FileInputStream.java:93)\n\tat sun.net.www.protocol.file.FileURLConnecti= on.connect(FileURLConnection.java:90)\n\tat sun.net.www.protocol.file.FileU= RLConnection.getInputStream(FileURLConnection.java:188)\n\tat java.net.URL.= openStream(URL.java:1045)\n\tat org.apache.hadoop.conf.Configuration.parse(= Configuration.java:2502)\n\tat org.apache.hadoop.conf.Configuration.loadRes= ource(Configuration.java:2573)\n\tat org.apache.hadoop.conf.Configuration.l= oadResources(Configuration.java:2526)\n\tat org.apache.hadoop.conf.Configur= ation.getProps(Configuration.java:2418)\n\tat org.apache.hadoop.conf.Config= uration.get(Configuration.java:981)\n\tat org.apache.hadoop.conf.Configurat= ion.getTrimmed(Configuration.java:1031)\n\tat org.apache.hadoop.conf.Config= uration.getBoolean(Configuration.java:1432)\n\tat org.apache.hadoop.hbase.H= BaseConfiguration.checkDefaultsVersion(HBaseConfiguration.java:68)\n\tat or= g.apache.hadoop.hbase.HBaseConfiguration.addHbaseResources(HBaseConfigurati= on.java:82)\n\tat org.apache.hadoop.hbase.HBaseConfiguration.create(HBaseCo= nfiguration.java:97)\n\tat org.apache.phoenix.query.ConfigurationFactory$Co= nfigurationFactoryImpl$1.call(ConfigurationFactory.java:49)\n\tat org.apach= e.phoenix.query.ConfigurationFactory$ConfigurationFactoryImpl$1.call(Config= urationFactory.java:46)\n\tat org.apache.phoenix.util.PhoenixContextExecuto= r.call(PhoenixContextExecutor.java:78)\n\tat org.apache.phoenix.util.Phoeni= xContextExecutor.callWithoutPropagation(PhoenixContextExecutor.java:93)\n\t= at org.apache.phoenix.query.ConfigurationFactory$ConfigurationFactoryImpl.g= etConfiguration(ConfigurationFactory.java:46)\n\tat org.apache.phoenix.jdbc= .PhoenixDriver$1.run(PhoenixDriver.java:84)\nException in thread \"Thread-1= \" java.lang.RuntimeException: java.io.FileNotFoundException: /etc/hbase/2.= 5.0.0-1145/0/core-site.xml (Permission denied)\n\tat org.apache.hadoop.conf= .Configuration.loadResource(Configuration.java:2673)\n\tat org.apache.hadoo= p.conf.Configuration.loadResources(Configuration.java:2526)\n\tat org.apach= e.hadoop.conf.Configuration.getProps(Configuration.java:2418)\n\tat org.apa= che.hadoop.conf.Configuration.get(Configuration.java:981)\n\tat org.apache.= hadoop.conf.Configuration.getTrimmed(Configuration.java:1031)\n\tat org.apa= che.hadoop.conf.Configuration.getBoolean(Configuration.java:1432)\n\tat org= .apache.hadoop.hbase.HBaseConfiguration.checkDefaultsVersion(HBaseConfigura= tion.java:68)\n\tat org.apache.hadoop.hbase.HBaseConfiguration.addHbaseReso= urces(HBaseConfiguration.java:82)\n\tat org.apache.hadoop.hbase.HBaseConfig= uration.create(HBaseConfiguration.java:97)\n\tat org.apache.phoenix.query.C= onfigurationFactory$ConfigurationFactoryImpl$1.call(ConfigurationFactory.ja= va:49)\n\tat org.apache.phoenix.query.ConfigurationFactory$ConfigurationFac= toryImpl$1.call(ConfigurationFactory.java:46)\n\tat org.apache.phoenix.util= .PhoenixContextExecutor.call(PhoenixContextExecutor.java:78)\n\tat org.apac= he.phoenix.util.PhoenixContextExecutor.callWithoutPropagation(PhoenixContex= tExecutor.java:93)\n\tat org.apache.phoenix.query.ConfigurationFactory$Conf= igurationFactoryImpl.getConfiguration(ConfigurationFactory.java:46)\n\tat o= rg.apache.phoenix.jdbc.PhoenixDriver$1.run(PhoenixDriver.java:84)\nCaused b= y: java.io.FileNotFoundException: /etc/hbase/2.5.0.0-1145/0/core-site.xml (= Permission denied)\n\tat java.io.FileInputStream.open0(Native Method)\n\tat= java.io.FileInputStream.open(FileInputStream.java:195)\n\tat java.io.FileI= nputStream.(FileInputStream.java:138)\n\tat java.io.FileInputStream.<= init>(FileInputStream.java:93)\n\tat sun.net.www.protocol.file.FileURLConne= ction.connect(FileURLConnection.java:90)\n\tat sun.net.www.protocol.file.Fi= leURLConnection.getInputStream(FileURLConnection.java:188)\n\tat java.net.U= RL.openStream(URL.java:1045)\n\tat org.apache.hadoop.conf.Configuration.par= se(Configuration.java:2502)\n\tat org.apache.hadoop.conf.Configuration.load= Resource(Configuration.java:2573)\n\t... 14 more" > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)