Member since
03-14-2016
4721
Posts
1111
Kudos Received
874
Solutions
My Accepted Solutions
Title | Views | Posted |
---|---|---|
2030 | 04-27-2020 03:48 AM | |
4023 | 04-26-2020 06:18 PM | |
3249 | 04-26-2020 06:05 PM | |
2602 | 04-13-2020 08:53 PM | |
3867 | 03-31-2020 02:10 AM |
11-21-2019
05:58 PM
@vciampa Usually repositories can be found in the repositories section of the doc. For example if oyu want to access HDP 2.6 repom then please check: "HDP 2.6 Repositories" section https://docs.cloudera.com/HDPDocuments/Ambari-2.6.2.2/bk_ambari-installation/content/hdp_stack_repositories.html HDP 2.6 Repositories
HDP 2.5 Repositories
HDP 2.4 Repositories . Similarly if you want to see the HDP 3.x repo then check: https://docs.cloudera.com/HDPDocuments/Ambari-2.7.4.0/bk_ambari-installation-ppc/content/hdp_stack_repositories.html https://docs.cloudera.com/HDPDocuments/Ambari-2.7.3.0/bk_ambari-installation-ppc/content/hdp_30_repositories.html . If you still see any issue then please let us know where exactly are you looking out for the repo and while accessing the repo do you get any error?
... View more
11-20-2019
02:24 PM
@KaviTiwari Correct when we manually want to run such scripts which are dependent on ambari agent python modules then Yes, we will have to manually export PYTHONPATH. Ambari agent automatically sets the necessary module paths in the python path when it tries to executed such scripts.
... View more
11-20-2019
01:39 PM
@KaviTiwari Please make sure to set the "PYTHONPATH" variable to point to ambari agent lib directory as following: # export PYTHONPATH=/usr/lib/ambari-agent/lib:$PYTHONPATH
# python test_alert_disk_space.py .
... View more
11-14-2019
08:00 PM
3 Kudos
@JayZhang Until the mentioned JIRA is fixed permanently can you please try this workaround. One time One line change inside the "/usr/lib/ambari-server/web/javascripts/app.js" file should work. Step-1). Take a Safe Backup of the file "/usr/lib/ambari-server/web/javascripts/app.js" on ambari server host. # cp -f /usr/lib/ambari-server/web/javascripts/app.js /PATH/To/Backup/app.js.ORIGINAL Step-2). Also just above the "App.YarnContainersView = App.TextDashboardWidgetView.extend" line inside the above file you will see a function declaration like "counterOr" we will need to make one change there. (BEFORE CHANGE) # grep -B12 'App.YarnContainersView' /usr/lib/ambari-server/web/javascripts/app.js
var App = require('app');
function counterOrNA(key) {
var _key = 'model.{0}.length'.format(key);
return Em.computed(_key, function () {
if (Em.isNone(this.get('model.' + key)) || this.get('model.metricsNotAvailable')) {
return Em.I18n.t('services.service.summary.notAvailable');
}
return this.get(_key);
});
} Step-3). IN the above function block you will see a line as "var _key = 'model.{0}.length'.format(key);" We need to just remove the ".length" work from that string. (AFTER CHANGE) # grep -B12 'App.YarnContainersView' /usr/lib/ambari-server/web/javascripts/app.js
var App = require('app');
function counterOrNA(key) {
var _key = 'model.{0}'.format(key);
return Em.computed(_key, function () {
if (Em.isNone(this.get('model.' + key)) || this.get('model.metricsNotAvailable')) {
return Em.I18n.t('services.service.summary.notAvailable');
}
return this.get(_key);
});
} Step-4). Save the file and then Hard Refresh the Browser. On Mac (command + Shift + R)
... View more
11-13-2019
01:59 AM
@asmarz We see the sudoer error. Command start time 2019-11-13 10:43:52
bash: /var/lib/ambari-agent/tmp/ambari-sudo.sh: Permission denied So please make sure that Either you are running amabri agent as "root" user. You can verify it by looking at the following property: # grep run_as /etc/ambari-agent/conf/ambari-agent.ini
run_as_user=root OR You have configured the Sudoer permissions properly as mentioned in the doc: https://docs.cloudera.com/HDPDocuments/HDP3/HDP-3.1.4/securing-credentials/content/ambari_sec_how_to_configure_an_ambari_agent_for_non_root.html
... View more
11-13-2019
01:33 AM
@asmarz Can you try this once. Copy the "/var/lib/ambari-server/create-python-wrap.sh" file from Ambari Server node and then Place it on the problematic Agent node at "/var/lib/ambari-agent/tmp/create-python-wrap.sh" and then again try to run the same command again and then verify if it creates the link? # sh -x /var/lib/ambari-agent/tmp/create-python-wrap.sh . Also pleas verify if you are using correct ambari agent binary on the host? # rpm -qa | grep ambari
# grep ambari /var/log/yum.log .
... View more
11-13-2019
01:18 AM
@asmarz On the Ambari Agent host where you are observing this issue please try this. You will find a file like following "/var/lib/ambari-agent/tmp/create-python-wrap.sh". Can you please try to run that file manually as "root" user like? # sh -x /var/lib/ambari-agent/tmp/create-python-wrap.sh Above should create the mentioned symlink ... but if it does not work then please share the Full output of the above commend from the terminal as it is. . Once the above script is executed fine then please check if the link is created properly or not? # ls -l /usr/bin//ambari-python-wrap
... View more
11-12-2019
09:51 PM
1 Kudo
@sagittarian As we see the error "" means permission related error on the mentioned directory. Later when we look at the directory ownership then we find it as ""/user/hive/warehouse/postgres":hdfs:hive:drwxrwx--x" Usually, the "/user/hive" or "/user/hive/warehouse" directory ownership is like "hive:hdfs" (where "hdfs" is the superuser group), But in your case it is hdfs:hive (instead of hive::hdfs) Example: (please double check these dir permissions) # su - hdfs -c "hdfs dfs -ls /user/hive"
# su - hdfs -c "hdfs dfs -ls /user/hive/warehouse"
# su - hdfs -c "hdfs dfs -ls /user/hive/warehouse/postgres" So please verify that once. And also please verify if the user "nthumu" belongs to the correct Group? # id nthumu .
... View more
11-12-2019
09:15 PM
@asmarz Try reinstalling Ambari Agent Binaries once. Ideally there should be a Symlink created as following when you successfully install Ambari Agent Binary to a host. The symlink points to a Python binary installed on that host. Example: # ls -lart /usr/bin/ambari-python-wrap
lrwxrwxrwx. 1 root root 15 Feb 15 2019 /usr/bin/ambari-python-wrap -> /usr/bin/python . Try reinstalling ambari agent. # which python
# ls -l /usr/bin/python
# /usr/bin/python -V
# yum reinstall ambari-agent
# ls -lart /usr/bin/ambari-python-wrap .
... View more
11-10-2019
09:52 PM
@Rak Looks like there no Space just before "--target-dir" in your command "--split-by `date`--target-dir" Can you give a single space before the target-dir as following and then try again. Also please check the target-dir PATH is valid. Means in your case looks like it has a missing forward slash like "user/hive" should be "/user/hive" ...etc # sqoop import --connect 'database' --username 'sa' -P --query "select * from database.table where $CONDITIONS AND `date`= '11-11-2019'" --split-by `date` --target-dir=/user/hive/warehouse/stagging_tables/tablenew -m 1
... View more