Member since
08-08-2017
1652
Posts
30
Kudos Received
11
Solutions
My Accepted Solutions
| Title | Views | Posted |
|---|---|---|
| 1969 | 06-15-2020 05:23 AM | |
| 16031 | 01-30-2020 08:04 PM | |
| 2108 | 07-07-2019 09:06 PM | |
| 8245 | 01-27-2018 10:17 PM | |
| 4666 | 12-31-2017 10:12 PM |
12-05-2017
06:18 PM
can you share with me please how to rows which have FK constraint in different tables
... View more
12-05-2017
06:03 PM
how to remove the following component by API from worker machine we need to remove these component since ambari GUI not have the option to delete this component /component clients from worker machine curl -u admin:admin -H "X-Requested-By: ambari" -X GET http://master02:8080/api/v1/clusters/HDP/hosts/worker04.sys45.com | grep component_name
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 24661 100 24661 0 0 164k 0 --:--:-- --:--:-- --:--:-- 164k
"component_name" : "DATANODE",
"component_name" : "HCAT",
"component_name" : "HDFS_CLIENT",
"component_name" : "HIVE_CLIENT",
"component_name" : "METRICS_MONITOR",
"component_name" : "NODEMANAGER",
"component_name" : "PIG",
"component_name" : "SLIDER",
"component_name" : "SPARK2_CLIENT",
"component_name" : "TEZ_CLIENT",
"component_name" : "YARN_CLIENT",
"component_name" : "ZOOKEEPER_CLIENT",
... View more
Labels:
- Labels:
-
Apache Ambari
-
Apache Hadoop
12-05-2017
05:07 PM
we still get the same errors about ambari=> delete from host_role_command where host_id=351;
ERROR: update or delete on table "host_role_command" violates foreign key constraint "fk_execution_command_task_id" on table "execution_command"
DETAIL: Key (task_id)=(5156) is still referenced from table "execution_command".
ambari=> Delete from hosts where host_id=351;
ERROR: update or delete on table "hosts" violates foreign key constraint "fk_host_role_command_host_id" on table "host_role_command"
DETAIL: Key (host_id)=(351) is still referenced from table "host_role_command".
... View more
12-05-2017
04:54 PM
another issue I have about : ambari=> Delete from hosts where host_id=351;
ERROR: update or delete on table "hosts" violates foreign key constraint "fk_host_role_command_host_id" on table "host_role_command"
DETAIL: Key (host_id)=(351) is still referenced from table "host_role_command".
... View more
12-05-2017
04:34 PM
from the ambari-server log we see that configs for this execution command: Cluster not found, clusterName=clusterID=-1
05 Dec 2017 16:33:37,189 WARN [ambari-action-scheduler] ExecutionCommandWrapper:185 - Unable to lookup the cluster by ID; assuming that there is no cluster and therefore no configs for this execution command: Cluster not found, clusterName=clusterID=-1
05 Dec 2017 16:33:37,189 WARN [ambari-action-scheduler] ExecutionCommandWrapper:185 - Unable to lookup the cluster by ID; assuming that there is no cluster and therefore no configs for this execution command: Cluster not found, clusterName=clusterID=-1
05 Dec 2017 16:33:38,222 WARN [ambari-action-scheduler] ExecutionCommandWrapper:185 - Unable to lookup the cluster by ID; assuming that there is no cluster and therefore no configs for this execution command: Cluster not found, clusterName=clusterID=-1
05 Dec 2017 16:33:38,222 WARN [ambari-action-scheduler] ExecutionCommandWrapper:185 - Unable to lookup the cluster by ID; assuming that there is no cluster and therefore no configs for this execution command: Cluster not found, clusterName=clusterID=-1
05 Dec 2017 16:33:38,222 WARN [ambari-action-scheduler] ExecutionCommandWrapper:185 - Unable to lookup the cluster by ID; assuming that there is no cluster and therefore no configs for this execution command: Cluster not found, clusterName=clusterID=-1
05 Dec 2017 16:33:39,247 WARN [ambari-action-scheduler] ExecutionCommandWrapper:185 - Unable to lookup the cluster by ID; assuming that there is no cluster and therefore no configs for this execution command: Cluster not found, clusterName=clusterID=-1
05 Dec 2017 16:33:39,247 WARN [ambari-action-scheduler] ExecutionCommandWrapper:185 - Unable to lookup the cluster by ID; assuming that there is no cluster and therefore no configs for this execution command: Cluster not found, clusterName=clusterID=-1
05 Dec 2017 16:33:39,247 WARN [ambari-action-scheduler] ExecutionCommandWrapper:185 - Unable to lookup the cluster by ID; assuming that there is no cluster and therefore no configs for this execution command: Cluster not found, clusterName=clusterID=-1
05 Dec 2017 16:33:40,272 WARN [ambari-action-scheduler] ExecutionCommandWrapper:185 - Unable to lookup the cluster by ID; assuming that there is no cluster and therefore no configs for this execution command: Cluster not found, clusterName=clusterID=-1
05 Dec 2017 16:33:40,273 WARN [ambari-action-scheduler] ExecutionCommandWrapper:185 - Unable to lookup the cluster by ID; assuming that there is no cluster and therefore no configs for this execution command: Cluster not found, clusterName=clusterID=-1
05 Dec 2017 16:33:40,273 WARN [ambari-action-scheduler] ExecutionCommandWrapper:185 - Unable to lookup the cluster by ID; assuming that there is no cluster and therefore no configs for this execution command: Cluster not found, clusterName=clusterID=-1
^C
... View more
12-05-2017
04:15 PM
the deleted host - worker 06 only deleted and we not removed the worker component , so now when we add this worker again mayby this is the conflict because worker is already installed ?|
... View more
12-05-2017
04:05 PM
now after we delete the worler06 now we want to add it to the cluster but we get from the ambari GUI: we waiting more then 20min - is it logical ? Please wait while the hosts are being checked for potential problems...
... View more
12-05-2017
03:46 PM
I am usually remove it by the amabri GUI ( dlete node ) , but I guess the API do the same ?
... View more
12-05-2017
03:12 PM
I am trying to remove old worker from the DB ( from ambari-server machine ) as the following * reference - https://community.hortonworks.com/questions/52910/how-can-i-remove-registered-host-but-do-not-added.html psql -U ambari ambari
Password for user ambari: ambari-> select host_id from hosts where host_name='worker05.sys59.com';
host_id
---------
255
(1 row) so I delete the host: ambari=> Delete from hoststate where host_id=255
ambari-> Delete from hosts where host_id=255
ambari=> select host_id from hosts where host_name='worker05.sys59.com';
host_id ---------
255 (1 row)
this worker still exists in DB , ( host_id=255 ) , even I restart the ambari-server !!
why?
and how to total remove this worker include all worker properties from postgreSQL ?
... View more
Labels:
- Labels:
-
Apache Ambari
-
Apache Hadoop
12-05-2017
12:56 PM
@Aditya ok , so what we can do next ?
... View more