Service endpoints URLs using Ambari APIs

2015-07-11 Thread Anandha L Ranganathan
I am looking for an API that will provide all the service endpoints of the components that are installed using Ambari The api should return something like this. ResourceManager Logs = http://hostname1:8088/ namenode = http://hostname:50070 oozie = http://hostname2:11000 It could be single

Re: Service endpoints URLs using Ambari APIs

2015-07-12 Thread Anandha L Ranganathan
al_configs/hdfs-site> > ) > > -- pick the tag for the actual config > > * Get the config and grep the property (e.g. > http://ambari-server-host:8080/api/v1/clusters/c1/configurations?type=hdfs-site&tag=version1436499674556 > <http://smc201-1.c.pramod-thangali.inte

Re: Service endpoints URLs using Ambari APIs

2015-07-12 Thread Anandha L Ranganathan
5 at 10:59 AM Sumit Mohanty wrote: > What do you get when you use > > > > http://ambari-server-host.us-west-2.compute.amazonaws.com:8080/api/v1/clusters/dc/configurations?type=hdfs-site > <http://ambari-server-host.us-west-2.compute.amazonaws.com:8080/api/v1/clusters/dc/config

Re: Service endpoints URLs using Ambari APIs

2015-07-13 Thread Anandha L Ranganathan
} > ] > } > > > > On Sun, Jul 12, 2015 at 10:59 AM Sumit Mohanty > wrote: > >> What do you get when you use >> >> >> >> http://ambari-server-host.us-west-2.compute.amazonaws.com:8080/api/v1/clusters/dc/configurations?type=hdfs-site >> <http

Namenode HA setup using blueprint.

2015-08-21 Thread Anandha L Ranganathan
I am trying to setup Namenode HA using blueprint. After I call the API through the curl call , it says the following message. anandr-2073$ curl -u admin:x -H "X-Requested-by:ambari" -i -k -X POST http://localhost:8080/api/v1/blueprints/blueprint-hdfs-ha -d @blueprint-9-nodes-ha.json HTTP/1.1 1

Re: Namenode HA setup using blueprint.

2015-08-22 Thread Anandha L Ranganathan
.host.com" > } > ] > }, > { > "name" : "host_group_2", > "hosts" : [ > { > "fqdn" : "sma-test-2.host.com" > }, > { > "fqdn" :

NameNode HA -Blueprints - Standby NN failed and Active NN created

2015-08-25 Thread Anandha L Ranganathan
Hi I am trying to install Active Namenode HA using blueprints. During the cluster creation through scripts, it does following and completes. 1) Journal nodes starts and initialized (formats journal node). 2) Initialization the HA state in zookeeper or ZKFC ( Both in Active and Standby namenode

Re: NameNode HA -Blueprints - Standby NN failed and Active NN created

2015-08-25 Thread Anandha L Ranganathan
size": "128m" } Thanks Anand On Tue, Aug 25, 2015 at 11:23 AM Anandha L Ranganathan < analog.s...@gmail.com> wrote: > > Hi > > I am trying to install Active Namenode HA using blueprints. > During the cluster creation through scripts, it does following and >

Re: NameNode HA -Blueprints - Standby NN failed and Active NN created

2015-08-26 Thread Anandha L Ranganathan
essor will select an “active” and “standby” namenode. > > If it still appears to you that the property is being set by the > Blueprints processor, please feel free to file a JIRA to track the > investigation into this. > > Hope this helps! > > Thanks, > Bob > > On Aug 2

Re: NameNode HA -Blueprints - Standby NN failed and Active NN created

2015-08-26 Thread Anandha L Ranganathan
Thanks Bob. It works fine and I am able to resolve the issue. I filed the bug https://issues.apache.org/jira/browse/AMBARI-12893. I can fix this and provide a patch. Could you point me to build instruction wiki for Ambari ? On Wed, Aug 26, 2015 at 7:22 PM, Anandha L Ranganathan < analo

Ambari metrics collector -unble to restart

2016-05-07 Thread Anandha L Ranganathan
Ambari metrics collector was working fine for 6 months and suddenly it stopped working. This is the error we are getting. hbase.rootdir - /mnt/data/ambari-metrics-collector/hbase hbase.cluster.distributed -false Metrics service operation mode -embedded hbase.zookeeper.property.clie

Re: Ambari metrics collector -unble to restart

2016-05-07 Thread Anandha L Ranganathan
org.apache.phoenix.jdbc.PhoenixStatement.executeMutation(PhoenixStatement.java:250) at org.apache.phoenix.jdbc.PhoenixStatement.executeUpdate(PhoenixStatement.java:1026) at org.apache.phoenix.query.ConnectionQueryServicesImpl$9.call(ConnectionQueryServicesImpl.java:1532) On Sat, May 7, 2016 at 12:37 AM, Anandha L Ranganathan < analo

HDP upgrade failed on Finalize Upgrade Pre-Check using ambari.

2016-05-18 Thread Anandha L Ranganathan
Hi, I created the test cluster and trying to upgrade HDP 2.4 During the upgrade it failed. Steps to upgrade the HDP. Ambari upgrade - ambari-2.1.0 => ambari-2.2.1.0 HDP upgrade - HDP 2.2.6 => HDP 2.4.0.0 During the upgrade I had one issues. forgot to turn-off the JMX port and during the u

Re: HDP upgrade failed on Finalize Upgrade Pre-Check using ambari.

2016-05-18 Thread Anandha L Ranganathan
I also verified that in one of the node and it is pointing to 2.4 version. [root@usw2dxdpzo01 ~]# ls -lrt /usr/hdp/current/zookeeper-client lrwxrwxrwx. 1 root root 30 May 18 15:42 /usr/hdp/current/zookeeper-client -> /usr/hdp/2.4.0.0-169/zookeeper On Wed, May 18, 2016 at 9:44 AM, Anandh

Re: HDP upgrade failed on Finalize Upgrade Pre-Check using ambari.

2016-05-18 Thread Anandha L Ranganathan
If that is the case, > you can set the actual version in the hostcomponentstate table. If you > then restart Ambari, you should be able to retry the step and see if it > succeeds. > > > > Thanks > > *From: *Anandha L Ranganathan > *Reply-To: *"user@ambari.apache.o

Ambari upgrade 2.4 - not yet finalized

2016-05-18 Thread Anandha L Ranganathan
I am running rolling upgrade in dev cluster .It is completed with 100% but not yet finalized. I was testing int he dev cluster and validating is everything working fine. I was able to run the Hive Query using HS2 server. I don't remember what is the reason but I restarted all namenode servic

Re: Ambari upgrade 2.4 - not yet finalized

2016-05-19 Thread Anandha L Ranganathan
t > > It's probably best to just finalize the upgrade and start NameNode from > the web client after finalization. > > On May 18, 2016, at 10:02 PM, Anandha L Ranganathan > wrote: > > I am running rolling upgrade in dev cluster .It is completed with 100% > but no

Re: HDP upgrade failed on Finalize Upgrade Pre-Check using ambari.

2016-05-19 Thread Anandha L Ranganathan
. It is always good practice to backup your > database before trying anything directly against it. > > > > You should not lose information from an Ambari restart. > > > > Thanks > > > > *From: *Anandha L Ranganathan > *Reply-To: *"user@ambari.apache.o

Re: Ambari upgrade 2.4 - not yet finalized

2016-05-19 Thread Anandha L Ranganathan
successfully. On Thu, May 19, 2016 at 9:15 PM, Anandha L Ranganathan < analog.s...@gmail.com> wrote: > Hi Jonathan > > I tried to run it using ambari UI but it failed to with this exception. > Is there a way I can restart manually from command line. > > Our cluster are e

Re: HDP upgrade failed on Finalize Upgrade Pre-Check using ambari.

2016-05-20 Thread Anandha L Ranganathan
016-05-20 14:31:30,711 - Creating directory Directory['/etc/hadoop/conf'] since it doesn't exist. 2016-05-20 14:31:30,711 - Following the link /etc/hadoop/conf to /usr/hdp/current/hadoop-client/conf to create the directory Error: Error: Unable to run the custom hook script ['/usr/b

Re: HDP upgrade failed on Finalize Upgrade Pre-Check using ambari.

2016-05-20 Thread Anandha L Ranganathan
er > version, > then you can modify the database. > Take a look at > https://community.hortonworks.com/articles/29499/ambari-troubleshooting-a-r > olling-or-express-upgrad.html > You may have to update the host_version and cluster_version tables to > change the state from UPGRADING to UPGRAD

Ambari-server schema upgrade failed -2.2.1.1

2016-05-25 Thread Anandha L Ranganathan
I am trying to upgrade ambari-server with 2.2.1.1 version from 2.1.0 1) First upgraded ambari-server with "yum upgrade ambari-server" Here is the message received. Updated: ambari-server.x86_64 0:2.2.1.1-70 Complete! 2) Upgrade ambari-database with "ambari-server upgrade" This is the respo

Re: Ambari-server schema upgrade failed -2.2.1.1

2016-05-25 Thread Anandha L Ranganathan
these two commands? > > # rpm -qa mysql-connector-java > > # ls -la ls /usr/share/java/mysql-connector-java.jar > > > On May 25, 2016, at 2:23 PM, Anandha L Ranganathan > wrote: > > I am trying to upgrade ambari-server with 2.2.1.1 version from 2.1.0 > >

Logical Request: Provision Cluster operation hanging

2016-05-27 Thread Anandha L Ranganathan
I am seeing a operation "Logical Request: Provision Cluster " in the ambari console UI. It has been hanging for long time on that state. How do I move that process to complete or failed state. I tried to abort that operation but no changes to the state.Other operations are running fine witho

HDP 2.4 upgrade using ambari - service check failed for Tez at 82%

2016-06-17 Thread Anandha L Ranganathan
I am upgrading one of our cluster from HDP 2.2 to HDP 2.4.0. version. 80% of upgrade is completed and all the core, slave,hive, spark are upgraded to latest version of HDP 2.4 . During the service check phase, Tez component is failed. The status I see in the Application monitoring URL is YARN Ap

Unable to delete a service using Ambari API

2017-02-19 Thread Anandha L Ranganathan
I am trying to delete a service but I am unable to do it. In the past I was successful in deleting the service but this time it is throwing error. 1. curl -u admin: -H "X-Requested-By: ambari" -X DELETE http://localhost:8080/api/v1/clusters/prod/services/PRESTO 2. { 3. "stat

Ambari upgrade 2.5.1.0 issue - database consistency issues for topology

2017-08-11 Thread Anandha L Ranganathan
I am trying to upgrade from ambari-2.2.1 to ambari-2.5.1. During upgrade it didn't throw any error and it completed successfully. 1. INFO: Updating Ambari Server properties in ambari.properties ... 2. INFO: Updating Ambari Server properties in ambari-env.sh ... 3. WARNING: Original file

Re: Ambari upgrade 2.5.1.0 issue - database consistency issues for topology

2017-08-11 Thread Anandha L Ranganathan
Sumit, Please find the attached database-check logs. On Fri, Aug 11, 2017 at 12:57 PM, Sumit Mohanty wrote: > Anandha, can you share the content of /var/log/ambari-server/ambari- > server-check-database.log > > thanks > Sumit > ________ > From:

Re: Ambari upgrade 2.5.1.0 issue - database consistency issues for topology

2017-08-24 Thread Anandha L Ranganathan
need to delete > some rows manually. > > > If you are ok, can you open an Apache Ambari JIRA with the log file as > attachment. Someone will be able to add instructions for cleaning up the > DB. That way it remains searchable for others. > > > thanks > > Sumit >