You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafodion.apache.org by "Alice Chen (JIRA)" <ji...@apache.org> on 2015/07/22 20:17:14 UTC
[jira] [Created] (TRAFODION-515) LP Bug: 1353606 - Regression:
traf_cloudera_mods isn't updating Cloudera config since trafodion_mods
isn't exporting CLUSTER_NAME env variable
Alice Chen created TRAFODION-515:
------------------------------------
Summary: LP Bug: 1353606 - Regression: traf_cloudera_mods isn't updating Cloudera config since trafodion_mods isn't exporting CLUSTER_NAME env variable
Key: TRAFODION-515
URL: https://issues.apache.org/jira/browse/TRAFODION-515
Project: Apache Trafodion
Issue Type: Bug
Components: installer
Reporter: Tung Jin Chew
traf_cloudera_mods relies on the $CLUSTER_NAME env variable to contact the Cloudera Manager server. However, this is always blank.
trafodion_mods defines a CLUSTER_NAME environment variable
CLUSTER_NAME=$(curl -su $ADMIN:$PASSWORD http://$URL/api/v1/clusters |grep name | sed -e 's@[,]@@'g | awk '{print $3}' | sed "s/\"//g")
but it should be
export CLUSTER_NAME=$(curl -su $ADMIN:$PASSWORD http://$URL/api/v1/clusters |grep name | sed -e 's@[,]@@'g | awk '{print $3}' | sed "s/\"//g")
to make it visible to traf_cloudera_mods.
This is a regression, it used to work in the 0.8.3 installer_v1 before it was refactored into two files.
On a related note, when testing on a single-node machine, I found that the traf_cloudera_mod URLS
http://$CLOUDERA_MANAGER_URL/api/v1/clusters/$CLUSTER_NAME/services/hbase1/config
needs to be
http://$CLOUDERA_MANAGER_URL/api/v1/clusters/$CLUSTER_NAME/services/hbase/config
and
http://$CLOUDERA_MANAGER_URL/api/v1/clusters/$CLUSTER_NAME/services/hdfs1/config
needs to be
http://$CLOUDERA_MANAGER_URL/api/v1/clusters/$CLUSTER_NAME/services/hdfs/config
since that's the names that the CDH 4.5 installer uses for its services. Note the missing 1's.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)