Member since
10-14-2015
165
Posts
63
Kudos Received
27
Solutions
My Accepted Solutions
Title | Views | Posted |
---|---|---|
2776 | 12-11-2018 03:42 PM | |
2434 | 04-13-2018 09:17 PM | |
1558 | 02-08-2018 06:34 PM | |
3501 | 01-24-2018 02:18 PM | |
8486 | 10-11-2017 07:27 PM |
02-06-2017
01:19 PM
1 Kudo
If you're asking if you can take Ambari Alerts and publish them using PutSlack, I think what you're looking for is a script dispatcher: https://cwiki.apache.org/confluence/display/AMBARI/Creating+a+Script-based+Alert+Dispatcher When Ambari triggers an alert, it can invoke a custom python script. We used to use this for dispatching SNMP notifications before it was its own supported type. But you could use it for anything, including pushing data to a URL.
... View more
12-16-2016
07:06 PM
2 Kudos
There's your problem: drwxr-xr-x. 10 500 500 4096 Dec 14 11:28 spark2-client
Directories are not allowed in there. If you remove this it will fix the problem
... View more
12-16-2016
12:48 AM
Do an ls -l /usr/hdp/current and tell us what the output is. Is this a duplicate post of https://community.hortonworks.com/questions/71823/error-with-installing-any-service-oserror-errrno-1.html#answer-71976?
... View more
12-02-2016
11:52 PM
2 Kudos
Ambari doesn't actually ship with any bits for the HDP stack - we use repositories which you can specify in the installation wizard (or via a blueprint if you're doing a blueprint install). You just have to refer to the new repos for 2.5.3: http://s3.amazonaws.com/dev.hortonworks.com/HDP/hdp_urlinfo.json "2.5.3.0": {
"centos6": "http://s3.amazonaws.com/dev.hortonworks.com/HDP/centos6/2.x/BUILDS/2.5.3.0-38/HDP-2.5.3.0-38.xml",
"centos7": "http://s3.amazonaws.com/dev.hortonworks.com/HDP/centos7/2.x/BUILDS/2.5.3.0-38/HDP-2.5.3.0-38.xml",
"debian7": "http://s3.amazonaws.com/dev.hortonworks.com/HDP/debian7/2.x/BUILDS/2.5.3.0-38/HDP-2.5.3.0-38.xml",
"sles12": "http://s3.amazonaws.com/dev.hortonworks.com/HDP/sles12/2.x/BUILDS/2.5.3.0-38/HDP-2.5.3.0-38.xml",
"suse11": "http://s3.amazonaws.com/dev.hortonworks.com/HDP/suse11sp3/2.x/BUILDS/2.5.3.0-38/HDP-2.5.3.0-38.xml",
"ubuntu12": "http://s3.amazonaws.com/dev.hortonworks.com/HDP/ubuntu12/2.x/BUILDS/2.5.3.0-38/HDP-2.5.3.0-38.xml",
"ubuntu14": "http://s3.amazonaws.com/dev.hortonworks.com/HDP/ubuntu14/2.x/BUILDS/2.5.3.0-38/HDP-2.5.3.0-38.xml",
"ubuntu16": "http://s3.amazonaws.com/dev.hortonworks.com/HDP/ubuntu16/2.x/BUILDS/2.5.3.0-38/HDP-2.5.3.0-38.xml"
}
}
},
... View more
10-21-2016
12:36 PM
1 Kudo
Ambari currently only supports upgrading the entire HDP stack together. However, we are planning "patch upgrades" (https://issues.apache.org/jira/browse/AMBARI-12556) which would allow you to upgrade only a single component of the stack. This is targetted for the 3.0 release.
... View more
09-22-2016
02:54 PM
The document is not outdated; there are issues with certain parts of the project on newer versions of Maven. I believe specifically it's the contrib/views and possibly ambari-web which don't compile. I use new versions of Maven with ambari-server, ambari-views, etc ... but if I need to do a full build of the project (which is rare), then I use Maven 3.0.4. [ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:0.0.16:install-node-and-npm (install node and npm) on project capacity-scheduler: Execution install node and npm of goal com.github.eirslett:frontend-maven-plugin:0.0.16:install-node-and-npm failed: A required class was missing while executing com.github.eirslett:frontend-maven-plugin:0.0.16:install-node-and-npm: org/slf4j/helpers/MarkerIgnoringBase
I thought there was a Jira tracking this, but I can't find it.
... View more
09-19-2016
05:28 PM
I think the break down is like this: Changes to tables
hostgroup_component (1 added)
topology_host_info (2 added)
upgrade (1 added)
New Indexes 4 added Referential Integrity FK_hostinfo_host_id constraint added
... View more
09-19-2016
04:40 PM
Yes, there are most likely changes, especially if your "starting" version is 2.2.0.0 - it kind of depends on which version of Ambari you modeled your script after. git diff release-2.2.0-rc0 release-2.2.2 Ambari-DDL-Postgres-CREATE.sql diff --git a/ambari-server/src/main/resources/Ambari-DDL-Postgres-CREATE.sql b/ambari-server/src/main/resources/Ambari-DDL-Postgres-CREATE.sql
index 2bcfb9a..3a2899e 100644
--- a/ambari-server/src/main/resources/Ambari-DDL-Postgres-CREATE.sql
+++ b/ambari-server/src/main/resources/Ambari-DDL-Postgres-CREATE.sql
@@ -406,6 +406,7 @@ CREATE TABLE hostgroup_component (
blueprint_name VARCHAR(255) NOT NULL,
hostgroup_name VARCHAR(255) NOT NULL,
name VARCHAR(255) NOT NULL,
+ provision_action VARCHAR(255),
PRIMARY KEY(blueprint_name, hostgroup_name, name));
CREATE TABLE blueprint_configuration (
@@ -606,8 +607,10 @@ CREATE TABLE topology_host_info (
id BIGINT NOT NULL,
group_id BIGINT NOT NULL,
fqdn VARCHAR(255),
+ host_id BIGINT,
host_count INTEGER,
predicate VARCHAR(2048),
+ rack_info VARCHAR(255),
PRIMARY KEY (id)
);
@@ -642,6 +645,14 @@ CREATE TABLE topology_logical_task (
PRIMARY KEY (id)
);
+-- tasks indices --
+CREATE INDEX idx_stage_request_id ON stage (request_id);
+CREATE INDEX idx_hrc_request_id ON host_role_command (request_id);
+CREATE INDEX idx_hrc_status_role ON host_role_command (status, role);
+CREATE INDEX idx_rsc_request_id ON role_success_criteria (request_id);
+
+
+
--------altering tables by creating unique constraints----------
ALTER TABLE clusterconfig ADD CONSTRAINT UQ_config_type_tag UNIQUE (cluster_id, type_name, version_tag);
ALTER TABLE clusterconfig ADD CONSTRAINT UQ_config_type_version UNIQUE (cluster_id, type_name, version);
@@ -721,6 +732,7 @@ ALTER TABLE widget_layout_user_widget ADD CONSTRAINT FK_widget_id FOREIGN KEY (w
ALTER TABLE topology_request ADD CONSTRAINT FK_topology_request_cluster_id FOREIGN KEY (cluster_id) REFERENCES clusters(cluster_id);
ALTER TABLE topology_hostgroup ADD CONSTRAINT FK_hostgroup_req_id FOREIGN KEY (request_id) REFERENCES topology_request(id);
ALTER TABLE topology_host_info ADD CONSTRAINT FK_hostinfo_group_id FOREIGN KEY (group_id) REFERENCES topology_hostgroup(id);
+ALTER TABLE topology_host_info ADD CONSTRAINT FK_hostinfo_host_id FOREIGN KEY (host_id) REFERENCES hosts(host_id);
ALTER TABLE topology_logical_request ADD CONSTRAINT FK_logicalreq_req_id FOREIGN KEY (request_id) REFERENCES topology_request(id);
ALTER TABLE topology_host_request ADD CONSTRAINT FK_hostreq_logicalreq_id FOREIGN KEY (logical_request_id) REFERENCES topology_logical_request(id);
ALTER TABLE topology_host_request ADD CONSTRAINT FK_hostreq_group_id FOREIGN KEY (group_id) REFERENCES topology_hostgroup(id);
@@ -888,6 +900,7 @@ CREATE TABLE upgrade (
skip_failures SMALLINT DEFAULT 0 NOT NULL,
skip_sc_failures SMALLINT DEFAULT 0 NOT NULL,
downgrade_allowed SMALLINT DEFAULT 1 NOT NULL,
+ suspended SMALLINT DEFAULT 0 NOT NULL,
PRIMARY KEY (upgrade_id),
FOREIGN KEY (cluster_id) REFERENCES clusters(cluster_id),
FOREIGN KEY (request_id) REFERENCES request(request_id)
@@ -1038,7 +1051,7 @@ INSERT INTO adminprivilege (privilege_id, permission_id, resource_id, principal_
SELECT 1, 1, 1, 1;
INSERT INTO metainfo (metainfo_key, metainfo_value)
- SELECT 'version', '${ambariVersion}';
+ SELECT 'version', '${ambariSchemaVersion}';
COMMIT;
... View more
09-08-2016
07:47 PM
1 Kudo
You should see if the services reported for each config are still valid. If not, then it could just be an orphaned configuration which needs to be removed from the database. Ambari 2.4.1 will address this issue by providing a warning but letting the server startup.
... View more
09-07-2016
07:30 PM
Very nice! That's exactly what I was looking for and the cause was spot-on. Perhaps Ambari shouldn't fail silently anymore. conf-select used to have a ton of issues which is why we ignored errors invoking it.
... View more