Member since
09-29-2015
140
Posts
87
Kudos Received
9
Solutions
My Accepted Solutions
Title | Views | Posted |
---|---|---|
1273 | 07-20-2016 08:09 AM | |
413 | 07-19-2016 07:16 AM | |
724 | 06-30-2016 02:00 AM | |
6230 | 05-09-2016 06:00 AM | |
1799 | 04-11-2016 05:59 PM |
03-31-2016
03:54 PM
1 Kudo
Quite a few tasks are failing with errors similar to the following: 2016-03-31 15:29:48,526 - Task. Type: EXECUTE, Script: scripts/ru_set_all.py - Function: actionexecute
Traceback (most recent call last):
File "/var/lib/ambari-agent/cache/custom_actions/scripts/ru_set_all.py", line 26, in <module>
from resource_management.libraries.script import Script
File "/usr/lib/python2.6/site-packages/resource_management/__init__.py", line 23, in <module>
from resource_management.libraries import *
File "/usr/lib/python2.6/site-packages/resource_management/libraries/__init__.py", line 23, in <module>
from resource_management.libraries.functions import *
File "/usr/lib/python2.6/site-packages/resource_management/libraries/functions/__init__.py", line 25, in <module>
from resource_management.libraries.functions.default import *
File "/usr/lib/python2.6/site-packages/resource_management/libraries/functions/default.py", line 24, in <module>
from resource_management.libraries.script import Script
File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/__init__.py", line 23, in <module>
from resource_management.libraries.script.script import *
File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 32, in <module>
from ambari_commons.constants import UPGRADE_TYPE_NON_ROLLING, UPGRADE_TYPE_ROLLING ImportError: cannot import name UPGRADE_TYPE_NON_ROLLING Any pointers? I'm upgrading from HDP 2.2.9 to HDP 2.4 using Ambari 2.2.1.1
... View more
Labels:
03-29-2016
02:15 PM
@Chris suen Please check https://issues.apache.org/jira/browse/AMBARI-5639 Set the two parameters specified there to 50 in /etc/ambari-server/conf/ambari.properties and restart ambari-server.
... View more
03-29-2016
01:58 PM
@darkz yu
Are you able to start the concerned service manually on the given node? If so, please go ahead and file a technical support case / bug. Upgrade to 2.2.1.1 if possible.
... View more
03-17-2016
12:25 AM
2 Kudos
@Andrew Watson Yes. Python 2.6 is the minimum requirement.
... View more
03-16-2016
10:38 PM
@Ram D It is upto your cluster planning and how old data you need.
... View more
03-15-2016
06:12 PM
@Sunile Manjee no you can't. You would have to install the basic components and may be shut them down later.
... View more
03-15-2016
05:53 PM
@Ram D What is the Total space you have allocated for Ambari Metrics? It is expected to be about 100Gb based on the workloads. How many nodes are in the cluster and what components run on this system? Do you need all those data? You could also review the TTL parameters in AMS to reduce the amount of data retained over a period of time. If you have 100's of nodes, you could also look at using HDFS for storage[ie, move from embedded to distributed mode]. This way you could move the content into HDFS.
... View more
03-14-2016
04:59 PM
3 Kudos
@Sunile Manjee In the current versions, this is not supported. Some users create a set of zookeeper for a component Solr and update the respective component's zookeeper parameters. But this isn't a clean way to run the setup. There is an enhancement request pending for this and is expected to be fixed in a future release of Ambari.
... View more
03-10-2016
04:16 PM
2 Kudos
When you created a new service, was Custom config section created by default? As per Cwiki we have to create the configs locally.
... View more
03-10-2016
04:08 PM
@Prakash Punj I hope you have stopped iptables and disabled selinux as others have suggested. Please ensure that passwordless connection is going ok between the nodes. Is the right id_rsa copied to the host registration? Else, add the node manually. To do this, install ambari-agent manually in the host being added and then try the registration.
... View more
03-10-2016
04:06 PM
@Harshal Joshi
How many nodes are in the cluster? Is it a sandbox? Please check if the ambari-agent is indeed coming up. Compare /var/run/ambari-agent/ambari-agent.pid with the process running. Take a look at this article.
... View more
03-09-2016
04:52 PM
1 Kudo
@seungho han The nodes can have multiple IP addresses and that is alright. But the configurations used should be correctly setup and its better to use the same series of IP addresses. If the cluster is setup with Ambari and the FQDN's are correctly specified and if the FQDN's resolve to expected IP address, then you would not face a problem with configurations. If this is a manual installation, then please ensure that all the associated configuration files [hbase / zookeeper / hdfs] all point to correct IP addresses.
... View more
03-08-2016
04:02 PM
@Ram D Once accepted, did it start a job in the Ambari Ops? Please check for any errors in the Ambari Opts listing for this job. Also tail ambari-server.log for this period and observe if any error is reported related to this curl command.
... View more
03-08-2016
04:00 PM
@CS User We seem to be off for node ambdevtestdc2host-group-51.node.example. Please check hosts / hoststate and other hosts table for this node and look for discrepancy. It is possible one of the prior API calls to delete / add nodes might have messed up the db.
... View more
03-08-2016
10:01 AM
@Mark Petronic Thanks for the feedback. I would check this and get it fixed as appropriate.
... View more
03-08-2016
09:45 AM
2 Kudos
@Gonzalo Herreros Yes - for now, it has to be done manually. You could list all the packages for a given repo [older repo] and remove them manually in all the nodes. Typically the folders are well demarcated and hence chances of losing a current version file is rare. May be you could post this in 'Post idea' section.
... View more
03-07-2016
11:40 PM
Also, many times the terminal's stty erase isn't good for the curl commands, and hence a backspace etc introduces unexpected characters for curl. I would recommend typing it in a notepad like application and then copy paste the whole line.
... View more
03-07-2016
10:00 PM
1 Kudo
@Mark Petronic Step 15 isn't a configuration setting script. It is the step to update HiveMetastore with the NameService URI. Hence it's not expected to change when the services are restarted using Ambari. If it already lists the correct NameService URI, there is no need to re-run this command.
... View more
03-07-2016
05:10 PM
@Ali Gouta Yes it isn't possible to do this directly. But you could use Ambari API to check the current status of services in a given node and restart them if required using the API's.
... View more
03-05-2016
09:05 PM
1 Kudo
@wayne2chicago There is no need to shutdown the DB related services. The jar's are used only by the Client services like Ambari or Hive. You might have to restart Ambari / Hive or anything that uses the Oracle 12c database.
... View more
03-05-2016
09:01 PM
2 Kudos
@mallikarjunarao m As suggested by the document as referred to by @Neeraj Sabharwal, it's important to take care of Ambari Metric System memory requirement as well, in case it is going to be installed in the same system as Ambari Server. In which case I would recommend to plan for at least 16-32Gb only for AMS. More than 16 Gb if the cluster is going to run Hbase.
... View more
03-04-2016
05:26 PM
1 Kudo
@Örjan Lundberg Please run the following in your Ambari meta database: Select * from host_version; This would show the hosts where installation has failed - and installation needs to be retried.
... View more
03-03-2016
04:37 PM
4 Kudos
1. If using Ambari versions before 2.1.2, Disable HBase per region metrics.
On Ambari server host. Edit the following files under /var/lib/ambari-server/resources/: common-services/HBASE/0.96.0.2.0/package/templates/HBASE/hadoop-metrics2-hbase.properties-GANGLIA-MASTER.j2
common-services/HBASE/0.96.0.2.0/package/templates/HBASE/hadoop-metrics2-hbase.properties-GANGLIA-RS.j2 and add the following lines at the end before '% endif %}': *.source.filter.class=org.apache.hadoop.metrics2.filter.GlobFilter
hbase.*.source.filter.exclude=*Regions* Do a rolling restart of the HBase RegionServers.
Note: This does not disable RS metrics. It just disables the per region / per table metrics collected at Region level. This is disabled by default from Ambari 2.1.2.
2. Tune AMS configs:
Find out the Heap available to AMS collector host.
Change the following settings based on available memory: ams-hbase-env_ :: hbase_master_heapsize = 8192m (Or 16384m if available)
ams-hbase-env_ :: hbase_master_xmn_size = 1024m
ams-hbase-env_ :: regionserver_xmn_size = 1024m
ams-hbase-site :: phoenix.query.spoolThresholdBytes= 25165824 (24 MB from 12 MB)
3. AMS data storage
If using embedded mode, change the write paths for ams-hbase-site :: hbase.rootdir
ams-hbase-site :: hbase.tmp.dir so that its placed in the fastest possible disk. Also it's better to keep hbase.tmp.dir in a location different from hbase.rootdir After completing the above, stop AMS from Ambari. Once stopped ensure that the process are stopped by doing a ps -aux | grep ams If the process are still around, kill the same and clean up /var/run/ambari-metrics-collector/*.pid file. Now restart AMS services using Ambari.
... View more
- Find more articles tagged with:
- Ambari
- ams
- Cloud & Operations
- How-ToTutorial
- metrics
Labels:
03-02-2016
04:05 PM
2 Kudos
@Stefan Kupstaitis-Dunkler
You could query the Ambari db for table "clusters" for eg. mysql> select * from clusters;
+------------+-------------+--------------+--------------+--------------------+---------------+-----------------------+------------------+
| cluster_id | resource_id | cluster_info | cluster_name | provisioning_state | security_type | desired_cluster_state | desired_stack_id |
+------------+-------------+--------------+--------------+--------------------+---------------+-----------------------+------------------+
| 2 | 4 | | Test | INSTALLED | NONE | | 3 |
+------------+-------------+--------------+--------------+--------------------+---------------+-----------------------+------------------+
1 row in set (0.01 sec)
Or using curl get http://<ambari-server>:8080/api/v1/clusters/C1/ and process.
... View more
03-02-2016
01:52 PM
3 Kudos
With recent improvements in Ambari, upgrading can be done easily either using Rolling Upgrade or Express Upgrade. But there are times when upgrade/downgrade gets stuck either since all the precautions were not followed or due to product issues. When upgrade gets stuck, it is typically in an Upgrade Paused status or there aren't any status as such. At this juncture, care needs to be taken to ensure that the ambari-server is not restarted without consulting with Technical Support. Current status of the upgrade can be checked using multiple method:
Ambari Log files Ambari API URL's Ambari Databases 1. Ambari Log files Review Ambari Log files for any errors / exception when the upgrade is in progress. 2. Use Ambari URL's to find what are the failures http://<ambari-server>:8080/api/v1/clusters/c1/upgrades For eg http://vcert1.novalocal:8080/api/v1/clusters/VCertify/upgrades This would show all the upgrade or downgrade attempts. for eg if this is a upgrade failure, identify the latest Upgrade attempt number http://vcert1.novalocal:8080/api/v1/clusters/VCertify/upgrades/119?fields=upgrade_groups/upgrade_items/UpgradeItem/status,upgrade_groups/upgrade_items/UpgradeItem/context,upgrade_groups/UpgradeGroup/title this would list all the actions taken as part of upgrade attempt 119. Review the output to identify those JSON outputs without status 'COMPLETED'. This would give a clue to what items have failed to move to COMPLETED status and troubleshoot from there on. 3. Ambari Database Note: Care has to be taken while using Ambari DB. It is mandatory to backup the database before doing any upgrade / downgrade. Following tables in the Ambari database are ideal to start troubleshooting the issues: repo_version - this contains all the repo versions installed in the system mysql> select repo_version_id, stack_id, version, display_name from repo_version;
+-----------------+----------+--------------+------------------+
| repo_version_id | stack_id | version | display_name |
+-----------------+----------+--------------+------------------+
| 1 | 4 | 2.3.0.0-2557 | HDP-2.3.0.0-2557 |
| 2 | 4 | 2.3.2.0-2950 | HDP-2.3.2.0-2950 |
| 51 | 4 | 2.3.4.0-3485 | HDP-2.3.4.0 |
+-----------------+----------+--------------+------------------+
3 rows in set (0.00 sec) cluster_version - this contains the current versions in the cluster [installed / current / upgrading etc] mysql> select * from cluster_version;
+----+-----------------+------------+-------------+---------------+---------------+------------+
| id | repo_version_id | cluster_id | state | start_time | end_time | user_name |
+----+-----------------+------------+-------------+---------------+---------------+------------+
| 1 | 1 | 2 | OUT_OF_SYNC | 1448369111902 | 1448369112183 | _anonymous |
| 2 | 2 | 2 | UPGRADING | 1448521029573 | 1452063126443 | admin |
| 51 | 51 | 2 | CURRENT | 1450860003969 | 1451397592558 | admin |
+----+-----------------+------------+-------------+---------------+---------------+------------+
3 rows in set (0.00 sec)
host_version - this contains the details about the versions installed in a given host mysql> select * from host_version;
+----+-----------------+---------+-------------+
| id | repo_version_id | host_id | state |
+----+-----------------+---------+-------------+
| 1 | 1 | 4 | OUT_OF_SYNC |
| 2 | 1 | 1 | OUT_OF_SYNC |
| 3 | 1 | 2 | OUT_OF_SYNC |
| 4 | 1 | 3 | OUT_OF_SYNC |
| 5 | 2 | 1 | UPGRADED |
| 6 | 2 | 3 | UPGRADED |
| 7 | 2 | 2 | UPGRADED |
| 8 | 2 | 4 | OUT_OF_SYNC |
| 51 | 51 | 3 | CURRENT |
| 52 | 51 | 2 | CURRENT |
| 53 | 51 | 4 | CURRENT |
| 54 | 51 | 1 | CURRENT |
+----+-----------------+---------+-------------+
12 rows in set (0.05 sec)
hostcomponentstate- shows the current version / state of a given component or service mysql> select * from hostcomponentstate;
+-----+------------+------------------------+--------------+------------------+---------------+---------+----------------+---------------+----------------+
| id | cluster_id | component_name | version | current_stack_id | current_state | host_id | service_name | upgrade_state | security_state |
+-----+------------+------------------------+--------------+------------------+---------------+---------+----------------+---------------+----------------+
| 2 | 2 | NAMENODE | 2.3.4.0-3485 | 4 | STARTED | 4 | HDFS | NONE | UNSECURED |
| 3 | 2 | HISTORYSERVER | 2.3.4.0-3485 | 4 | STARTED | 1 | MAPREDUCE2 | NONE | UNSECURED |
| 4 | 2 | APP_TIMELINE_SERVER | 2.3.4.0-3485 | 4 | STARTED | 4 | YARN | NONE | UNSECURED |
| 5 | 2 | RESOURCEMANAGER | 2.3.4.0-3485 | 4 | STARTED | 4 | YARN | NONE | UNSECURED |
| 6 | 2 | WEBHCAT_SERVER | 2.3.4.0-3485 | 4 | INSTALLED | 2 | HIVE | NONE | UNSECURED |
| 8 | 2 | HIVE_SERVER | 2.3.4.0-3485 | 4 | INSTALLED | 2 | HIVE | NONE | UNSECURED |
Reviewing the above tables would give you an idea about the current state of upgrade / downgrade. Further troubleshooting would depend on the current state of Ambari upgrade/ downgrade, but the above should give fair clue to troubleshoot the issues.
... View more
- Find more articles tagged with:
- Ambari
- Cloud & Operations
- downgrade
- How-ToTutorial
- upgrade
Labels:
02-29-2016
05:26 PM
How about a hard refresh of the Ambari Server / dashboard?
... View more
02-29-2016
05:25 PM
1 Kudo
@Harini Yadav One location to check the components for a given product is for eg: /var/lib/ambari-server/resources/common-services/SPARK/1.4.1.2.3/metainfo.xml In this look for <names> below <components>, for eg <component>
<name>SPARK_THRIFTSERVER</name> There is no documentation as such from Hortonworks for this. Generic documentation is available at: Ambari CWiki
... View more
02-29-2016
04:51 PM
1 Kudo
@Jagdish SaripellaWhich version of HDP are you trying to install using these Ambari Versions? For the given version, could you please list /var/lib/ambari-server/resources/stacks/HDP/version/services?
... View more
- « Previous
-
- 1
- 2
- Next »