<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Ambari server start giving Error java process died with exitcode 255 in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-server-start-giving-Error-java-process-died-with/m-p/134015#M47845</link>
    <description>&lt;P&gt;@&lt;A href="https://community.hortonworks.com/users/10889/mohan221213.html"&gt;Mohan V&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Regarding error:&lt;/P&gt;&lt;PRE&gt;&lt;STRONG&gt;Caused by: org.apache.ambari.server.AmbariException: Stack Definition Service at '/var/lib/ambari-server/resources/common-services/HAWQ/2.0.0/metainfo.xml' doesn't contain a metainfo.xml &lt;/STRONG&gt;&lt;/PRE&gt;&lt;P&gt;Do you see "HAWQ" and "PXF" directories present inside the&lt;STRONG&gt; "&lt;/STRONG&gt;&lt;STRONG&gt;/var/lib/ambari-server/resources/common-services"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;If yes then you should move them to some "/tmp" directory and then try again. Then restart ambari server.&lt;/P&gt;&lt;P&gt;I have seen this kind of error in Old ambari servers. Can you please let us know about your ambari version.&lt;/P&gt;</description>
    <pubDate>Sat, 03 Dec 2016 04:03:11 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2016-12-03T04:03:11Z</dc:date>
    <item>
      <title>Ambari server start giving Error java process died with exitcode 255</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-server-start-giving-Error-java-process-died-with/m-p/134014#M47844</link>
      <description>&lt;P&gt;Trying to install ambari in my local centos7 machine.&lt;/P&gt;&lt;P&gt;I have followed the hortonworks document step by step.&lt;/P&gt;&lt;P&gt;when i run the command i.e&lt;/P&gt;&lt;P&gt;ambari-server start&lt;/P&gt;&lt;P&gt;it giving me bolow error.&lt;/P&gt;&lt;P&gt;Starting ambari-server
Ambari Server running with administrator privileges.
Organizing resource files at /var/lib/ambari-server/resources...
Server PID at: /var/run/ambari-server/ambari-server.pid
Server out at: /var/log/ambari-server/ambari-server.out
Server log at: /var/log/ambari-server/ambari-server.log
Waiting for server start.........
&lt;STRONG&gt;ERROR: Exiting with exit code -1. 
REASON: Ambari Server java process died with exitcode 255. Check /var/log/ambari-server/ambari-server.out for more information.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I have checked into &lt;STRONG&gt;/var/log/ambari-server/ambari-server.out &lt;/STRONG&gt;file, it contains&lt;/P&gt;&lt;PRE&gt;[EL Warning]: metadata: 2016-12-02 12:53:02.301--ServerSession(799570413)--The reference column name [resource_type_id] mapped on the element [field permissions] does not correspond to a valid id or basic field/column on the mapping reference. Will use referenced column name as provided.&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;and also i have checked the logs in /var/logs/ambari-server/ambari-server.log file&lt;/P&gt;&lt;P&gt;it contains&lt;/P&gt;&lt;P&gt;02 Dec 2016 12:53:00,195  INFO [main] ControllerModule:185 - Detected POSTGRES as the database type from the JDBC URL
02 Dec 2016 12:53:00,643  INFO [main] ControllerModule:558 - Binding and registering notification dispatcher class org.apache.ambari.server.notifications.dispatchers.AlertScriptDispatcher
02 Dec 2016 12:53:00,647  INFO [main] ControllerModule:558 - Binding and registering notification dispatcher class org.apache.ambari.server.notifications.dispatchers.EmailDispatcher
02 Dec 2016 12:53:00,684  INFO [main] ControllerModule:558 - Binding and registering notification dispatcher class org.apache.ambari.server.notifications.dispatchers.SNMPDispatcher
02 Dec 2016 12:53:01,911  INFO [main] AmbariServer:705 - Getting the controller
02 Dec 2016 12:53:02,614  INFO [main] StackManager:107 - Initializing the stack manager...
02 Dec 2016 12:53:02,614  INFO [main] StackManager:267 - Validating stack directory /var/lib/ambari-server/resources/stacks ...
02 Dec 2016 12:53:02,614  INFO [main] StackManager:243 - Validating common services directory /var/lib/ambari-server/resources/common-services ...
02 Dec 2016 12:53:02,888&lt;STRONG&gt; ERROR [main] AmbariServer:717 - Failed to run the Ambari Server&lt;/STRONG&gt;
com.google.inject.ProvisionException: Guice provision errors:&lt;/P&gt;&lt;P&gt;1) &lt;STRONG&gt;Error injecting constructor, org.apache.ambari.server.AmbariException: Stack Definition Service at '/var/lib/ambari-server/resources/common-services/HAWQ/2.0.0/metainfo.xml' doesn't contain a metainfo.xml file&lt;/STRONG&gt;
  at org.apache.ambari.server.stack.StackManager.&amp;lt;init&amp;gt;(StackManager.java:105)
  while locating org.apache.ambari.server.stack.StackManager annotated with interface com.google.inject.assistedinject.Assisted
  at org.apache.ambari.server.api.services.AmbariMetaInfo.init(AmbariMetaInfo.java:242)
  at org.apache.ambari.server.api.services.AmbariMetaInfo.class(AmbariMetaInfo.java:124)
  while locating org.apache.ambari.server.api.services.AmbariMetaInfo
  for field at org.apache.ambari.server.controller.AmbariServer.ambariMetaInfo(AmbariServer.java:138)
  at org.apache.ambari.server.controller.AmbariServer.class(AmbariServer.java:138)
  while locating org.apache.ambari.server.controller.AmbariServer&lt;/P&gt;&lt;P&gt;1 error
   at com.google.inject.internal.InjectorImpl$4.get(InjectorImpl.java:987)
   at com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:1013)
   at org.apache.ambari.server.controller.AmbariServer.main(AmbariServer.java:710)
&lt;STRONG&gt;Caused by: org.apache.ambari.server.AmbariException: Stack Definition Service at '/var/lib/ambari-server/resources/common-services/HAWQ/2.0.0/metainfo.xml' doesn't contain a metainfo.xml file&lt;/STRONG&gt;
   at org.apache.ambari.server.stack.ServiceDirectory.parseMetaInfoFile(ServiceDirectory.java:209)
   at org.apache.ambari.server.stack.CommonServiceDirectory.parsePath(CommonServiceDirectory.java:71)
   at org.apache.ambari.server.stack.ServiceDirectory.&amp;lt;init&amp;gt;(ServiceDirectory.java:106)
   at org.apache.ambari.server.stack.CommonServiceDirectory.&amp;lt;init&amp;gt;(CommonServiceDirectory.java:43)
   at org.apache.ambari.server.stack.StackManager.parseCommonServicesDirectory(StackManager.java:301)
   at org.apache.ambari.server.stack.StackManager.&amp;lt;init&amp;gt;(StackManager.java:115)
   at org.apache.ambari.server.stack.StackManager$$FastClassByGuice$$33e4ffe0.newInstance(&amp;lt;generated&amp;gt;)
   at com.google.inject.internal.cglib.reflect.$FastConstructor.newInstance(FastConstructor.java:40)
   at com.google.inject.internal.DefaultConstructionProxyFactory$1.newInstance(DefaultConstructionProxyFactory.java:60)
   at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:85)
   at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:254)
   at com.google.inject.internal.InjectorImpl$4$1.call(InjectorImpl.java:978)
   at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1031)
   at com.google.inject.internal.InjectorImpl$4.get(InjectorImpl.java:974)
   at com.google.inject.assistedinject.FactoryProvider2.invoke(FactoryProvider2.java:632)
   at com.sun.proxy.$Proxy25.create(Unknown Source)
   at org.apache.ambari.server.api.services.AmbariMetaInfo.init(AmbariMetaInfo.java:246)
   at org.apache.ambari.server.api.services.AmbariMetaInfo$$FastClassByGuice$$202844bc.invoke(&amp;lt;generated&amp;gt;)
   at com.google.inject.internal.cglib.reflect.$FastMethod.invoke(FastMethod.java:53)
   at com.google.inject.internal.SingleMethodInjector$1.invoke(SingleMethodInjector.java:56)
   at com.google.inject.internal.SingleMethodInjector.inject(SingleMethodInjector.java:90)
   at com.google.inject.internal.MembersInjectorImpl.injectMembers(MembersInjectorImpl.java:110)
   at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:94)
   at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:254)
   at com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46)
   at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1031)
   at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
   at com.google.inject.Scopes$1$1.get(Scopes.java:65)
   at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:40)
   at com.google.inject.internal.SingleFieldInjector.inject(SingleFieldInjector.java:53)
   at com.google.inject.internal.MembersInjectorImpl.injectMembers(MembersInjectorImpl.java:110)
   at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:94)
   at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:254)
   at com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46)
   at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1031)
   at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
   at com.google.inject.Scopes$1$1.get(Scopes.java:65)
   at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:40)
   at com.google.inject.internal.InjectorImpl$4$1.call(InjectorImpl.java:978)
   at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1024)
   at com.google.inject.internal.InjectorImpl$4.get(InjectorImpl.java:974)
   ... 2 more&lt;/P&gt;&lt;P&gt;Please suggest me.&lt;/P&gt;&lt;P&gt;Mohan.V&lt;/P&gt;</description>
      <pubDate>Sat, 03 Dec 2016 03:45:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-server-start-giving-Error-java-process-died-with/m-p/134014#M47844</guid>
      <dc:creator>mohan221213</dc:creator>
      <dc:date>2016-12-03T03:45:51Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari server start giving Error java process died with exitcode 255</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-server-start-giving-Error-java-process-died-with/m-p/134015#M47845</link>
      <description>&lt;P&gt;@&lt;A href="https://community.hortonworks.com/users/10889/mohan221213.html"&gt;Mohan V&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Regarding error:&lt;/P&gt;&lt;PRE&gt;&lt;STRONG&gt;Caused by: org.apache.ambari.server.AmbariException: Stack Definition Service at '/var/lib/ambari-server/resources/common-services/HAWQ/2.0.0/metainfo.xml' doesn't contain a metainfo.xml &lt;/STRONG&gt;&lt;/PRE&gt;&lt;P&gt;Do you see "HAWQ" and "PXF" directories present inside the&lt;STRONG&gt; "&lt;/STRONG&gt;&lt;STRONG&gt;/var/lib/ambari-server/resources/common-services"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;If yes then you should move them to some "/tmp" directory and then try again. Then restart ambari server.&lt;/P&gt;&lt;P&gt;I have seen this kind of error in Old ambari servers. Can you please let us know about your ambari version.&lt;/P&gt;</description>
      <pubDate>Sat, 03 Dec 2016 04:03:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-server-start-giving-Error-java-process-died-with/m-p/134015#M47845</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-12-03T04:03:11Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari server start giving Error java process died with exitcode 255</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-server-start-giving-Error-java-process-died-with/m-p/134016#M47846</link>
      <description>&lt;P&gt;Thanks for the suggestion &lt;A href="https://community.hortonworks.com/users/3823/joysensharma.html"&gt;jss.&lt;/A&gt;&lt;/P&gt;&lt;P&gt;But it could'nt solved the issue completely.&lt;/P&gt;&lt;P&gt;I have moved those files into temp directory and again tried to start the server but, now it given another error as &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ERROR: Exiting with exit code -1. 
REASON: Ambari Server java process died with exitcode 255. Check /var/log/ambari-server/ambari-server.out for more information.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;when i checked into the logs, there i have found that the&lt;STRONG&gt; current version db is not comapatable with the server.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;then i have tried these steps
&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;wget -O /etc/yum.repos.d/ambari.repo &lt;A href="http://public-repo-1.hortonworks.com/ambari/centos6/2.x/updates/2.2.1.0/ambari.repo" target="_blank"&gt;http://public-repo-1.hortonworks.com/ambari/centos6/2.x/updates/2.2.1.0/ambari.repo&lt;/A&gt;&lt;/STRONG&gt;
&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;yum install ambari-server -y&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ambari-server setup -y&lt;/STRONG&gt;
&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;wget -O /etc/yum.repos.d/ambari.repo &lt;A href="http://public-repo-1.hortonworks.com/ambari/centos6/2.x/updates/2.2.1.1/ambari.repo" target="_blank"&gt;http://public-repo-1.hortonworks.com/ambari/centos6/2.x/updates/2.2.1.1/ambari.repo&lt;/A&gt;&lt;/STRONG&gt;
&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;yum upgrade ambari-server -y&lt;/STRONG&gt;
&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ambari-server upgrade&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;STRONG&gt;ambari-server start &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;when i run these commands after that ambari server did started but here is the amazing this has happened.&lt;/P&gt;&lt;P&gt;actually, i removed the ambari completely and trying to reinstall it.&lt;/P&gt;&lt;P&gt;when i completed all the above steps, and when i entered into the ambari ui,&lt;STRONG&gt; it is again pointing to the same host which i have removed previously&lt;/STRONG&gt;. I was just shocked by seeing that with heartbeat lost.&lt;/P&gt;&lt;P&gt; then i realised that ambari agent is not at installed, &lt;/P&gt;&lt;P&gt;then i installed ambari agent and started it .&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;yum -y install ambari-agent&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ambari-agent start&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;then,when i tried to start the services it didnt worked.&lt;/P&gt;&lt;P&gt;i checked in command prompt that, is these all serivecs still exist or not ?, by entering zookeeper . but that command is not found, because service is not installed in my host.&lt;/P&gt;&lt;P&gt;Then i started to remove the services from the host which is present in a dead mode,using these commands.&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;curl
-u admin:admin -H “X-Requested-By: Ambari” -X DELETE &lt;A href="http://localhost:8080/api/v1/clusters/hostname/services/servicename" target="_blank"&gt;http://localhost:8080/api/v1/clusters/hostname/services/servicename&lt;/A&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;but it didnt worked, I got a error msg as&lt;/P&gt;
&lt;PRE&gt;message" : "CSRF protection is turned on. X-Requested-By HTTP header is required."&lt;/PRE&gt;&lt;P&gt;then i have edited the ambari-server.properties file and added these lines into that&lt;/P&gt;&lt;PRE&gt;vi /etc/ambari-server/conf/ambari.properties

api.csrfPrevention.enabled=false

ambari-server restart&lt;/PRE&gt;&lt;P&gt;then again i have retried it, at this time it did worked.&lt;/P&gt;&lt;P&gt;But when i tried to remove hive, it didnt,because mysql is running in my machine.&lt;/P&gt;&lt;P&gt;when i tried this command it did worked.&lt;/P&gt;&lt;PRE&gt;curl -u admin:admin -X DELETE -H 'X-Requested-By:admin' &lt;A href="http://localhost:8080/api/v1/clusters/mycluster/hosts/host/host_components/MYSQL_SERVER" target="_blank"&gt;http://localhost:8080/api/v1/clusters/mycluster/hosts/host/host_components/MYSQL_SERVER&lt;/A&gt;&lt;/PRE&gt;&lt;P&gt;then, when i tried to add the services starting with zookeeper,again,&lt;/P&gt;&lt;P&gt;it given me error like &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;"resource_management.core.exceptions.Fail: Applying 
Directory['/usr/hdp/current/zookeeper-client/conf'] failed, looped 
symbolic links found while resolving 
/usr/hdp/current/zookeeper-client/con&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Then i have checked the directories, i got to know that these links were pointing back to the same directories.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;So, i have tried these commands to solve this issue.&lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;rm /usr/hdp/current/zookeeper-client/conf
ln -s /etc/zookeeper/2.3.2.0-2950/0 /usr/hdp/current/zookeeper-client/conf&lt;/PRE&gt;&lt;P&gt;And it did worked.&lt;/P&gt;&lt;P&gt;at last i have successfully reinstalled the ambari as well as hadoop in my machine.&lt;/P&gt;&lt;P&gt;Thank you.
&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/users/3823/joysensharma.html"&gt;&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 03 Dec 2016 16:51:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-server-start-giving-Error-java-process-died-with/m-p/134016#M47846</guid>
      <dc:creator>mohan221213</dc:creator>
      <dc:date>2016-12-03T16:51:46Z</dc:date>
    </item>
  </channel>
</rss>

