Member since
06-20-2016
308
Posts
103
Kudos Received
29
Solutions
06-21-2021
01:05 AM
Hi Arvind , Can you check the Ambari server logs to see what error you are getting. If you are seeing something like this : Caused by: org.apache.ambari.server.AmbariException: Base url is missing for request RepositoryRequest Try to add this : gpl.license.accepted=true" in /etc/ambari-server/conf/ambari.properties and restart ambari-server.
... View more
06-19-2020
07:28 AM
<edit> Sorry I thought this was a new post. @guido please do not respond to old posts with new solutions. Ambari 2.6.0 Bug is not applicable here. @apappu The version on the end of the package is how they handled having multiple versions available in the repos as well as facilitating the upgrade process from one version to another. Using the variable scope in the python allowed ambari code to be dynamic across all the different versions, environments, etc. If your repos are setup right, this should not be an issue. I have seen some failure in the public repos lately, slow to respond, or blocked by certain cloud providers causing the "no package found" errors. If you are running your own private repos and have an issue like this, you can just create the packages you need in the version you want using the rpmrebuild command on an existing rpm.
... View more
04-01-2019
08:38 AM
Best solution for the issue. thanks for sharing.
... View more
08-14-2019
07:24 AM
well written article , For those who are using oracle database, we need to commit the transaction done after this changes.
... View more
09-18-2018
10:13 PM
If cluster is installed with Ambari 2.5 , Upgrading to Ambari2.6.x cause service re-start ( client) failure and Add service also fails with installation. with above combination, you might be hitting https://issues.apache.org/jira/browse/AMBARI-24629 if you see error like below 2018-09-15 08:37:13,748 - Looking for matching packages in the following repositories: HDP-2.6, HDP-UTILS-1.1.0.21 2018-09-15
08:37:15,841 - No package found for hive_${stack_version}(hive_(\d|_)+$) 2018-09-15
08:37:15,844 - The repository with version 2.6.1.0-129 for this command has been marked as resolved. It will be used to report the version of the component which was installed root cause is already explained in the BUG. How to fix the issue: 1. First find out what is your current version repo version id. in browser go to http://apappu3.hdp.com:8080/api/v1/stacks/HDP/versions/2.6/repository_versions?fields=operating_systems/repositories/Repositories/base_url From the response find out the repository_version_id for the version. 2. Now create /tmp/data.json with below content {
"operating_systems" : [
{
"OperatingSystems" : {
"ambari_managed_repositories": false,
"os_type" : "redhat6",
"stack_name" : "HDP",
"stack_version" : "2.6"
},
"repositories" : [
{
"Repositories" : {
"base_url" : "",
"repo_id" : "MY-ID",
"repo_name" : "MY_name"
}
},
{
"Repositories" : {
"base_url" : "",
"repo_id" : "MY-UTILS",
"repo_name" : "MY-UTILS_name"
}
}
]
}
]
}
Note: replace "MY-ID"/"MY-UTILS" with the actual sateliterepotag and os_type as well. 3. now run below curl call to update it. curl -u admin -H "X-Requested-By: ambari" --data @data.json -X PUT /api/v1/stacks/HDP/versions/2.6/repository_versions/ID Now - refresh the UI and see if the updated tags are visible in version definition. Note: Please take Ambari database backup before running the CURL call
... View more
Labels:
09-18-2018
09:51 PM
Many times Ambari throws installation errors like "No package found for hive_${stack_version}(hive_(\d|_)+$) ..." There can be many reasons for this failure. The root cause for this issue is, basically Ambari could not be able to determine the installable package. Reason1: Check if the same package is already installed using different repoid/sateliterepotag. that can be check using below command yum list installed | grep packagename
Ex: yum list installed | grep hive If it shows the entries then determine if those are installed with different repoid/sateliterepotag. In Ambari task logs you can find what tag/repo Ambari is using to install Now see "yum list installed" has the correct repoId - if it is not matching then manually uninstall that library and let Ambari install it. Reason2: If you are using Satelite repository - Ambari should show the repo tag name at "Applicable repositories: Satelitehdp265.." If it is not showing correctly, that means you repo version definition is incorrect. Make sure sateliterepo tag is defined correctly. Reason3: If you have installed the cluster with Ambari 2.5.x and then upgraded to Ambari2.6.x then you might encounter AMBARI-24629 bug. please follow https://community.hortonworks.com/articles/223111/service-restartadd-fails-after-upgrading-to-ambari.html to fix that issue.
... View more
Labels:
09-13-2018
10:35 PM
While Upgrading/Downgrading HDP in Ambari, if you see "Unable to determine the stack and stack version" it is possible the repo version has some inconsistency. Post Ambari2.6.x, should have repo_version table "resolved" column as 1 - If it shows "0" then run below update query. update repo_version set resolved = 1 Re-start Ambari and then attempt the operation again - it should go through. Note: As of now it is not a BUG as we could not able to reproduce the issue.
... View more
Labels:
11-15-2018
09:57 AM
Hi! While upgrading HDF - 3.0.2 to HDF-3.2.0 I'm facing the same problem. ambari=> select cluster_id, desired_stack_id from clusters; cluster_id | desired_stack_id
- 2 | 51 ambari=> select * from clusterstate ; cluster_id | current_cluster_state | current_stack_id 2 | | 51 ambari=> select stack_id, version from repo_version; stack_id | version 2 | 2.1.4.0-5 51 | 3.0.2.0-76 101 | 3.1.2.0-7 102 | 3.2.0.0 ---------------------- My current version in 3.0.2.0-76, stack_id=51 what can be the reason of why I can't install and upgrade to 3.2.0.0 Thanks in advance! with kind regards, Gulshan
... View more