TOSIT-IO/tdp-collection

Some '/opt/tdp' path are not variabilized

Closed this issue · 0 comments

$ grep -R '/opt/tdp'
(...)
roles/hdfs/namenode/tasks/start_standby_nn.yml:  command: "/opt/tdp/hadoop/bin/hdfs --config /etc/hadoop/conf.nn namenode -bootstrapStandby -nonInteractive"
roles/utils/jceks/defaults/main.yml:hadoop_home: "/opt/tdp/hadoop"
roles/hbase/ranger/tasks/config.yml:# enable-hbase-plugin.sh will only modify configuration files in /opt/tdp/hbase/conf
roles/hive/hiveserver2/templates/hive-env.sh.j2:export AUX_CLASSPATH="/opt/tdp/tez/*:/opt/tdp/tez/lib/*"
roles/hive/README.md:/opt/tdp/hive/bin/hive --config /etc/hive/conf.s2 --service beeline -u "jdbc:hive2://tdp-hive-s2-2.lxd:10001/;principal=hive/_HOST@REALM.COM;transportMode=http;httpPath=cliservice;ssl=true;sslTrustStore=/etc/ssl/certs/truststore.jks;trustStorePassword=$pass"
roles/hive/README.md:/opt/tdp/hive/bin/hive --config /etc/hive/conf.s2 --service beeline -u "jdbc:hive2://tdp-master-1.lxd:2181,tdp-master-2.lxd:2181,tdp-master-3.lxd:2181/;serviceDiscoveryMode=zooKeeper;zooKeeperNamespace=hiveserver2;sslTrustStore=/etc/ssl/certs/truststore.jks;trustStorePassword=$pass"
roles/hive/metastore/templates/hive-env.sh.j2:export AUX_CLASSPATH="/opt/tdp/tez/*:/opt/tdp/tez/lib/*"
roles/hive/client/templates/hive-env.sh.j2:export AUX_CLASSPATH="/opt/tdp/tez/*:/opt/tdp/tez/lib/*"
roles/hive/ranger/tasks/config.yml:# It can also be configured with COMPONENT_INSTALL_DIR_NAME but we still have to make /opt/tdp/hive/conf a symbolic link to /etc/hive/conf.s2 to get the configurations at the right place
roles/hive/ranger/templates/hive-env.sh.j2:export AUX_CLASSPATH="/opt/tdp/tez/*:/opt/tdp/tez/lib/*"
roles/hive/common/tasks/hdfs_init.yml:  command: "/opt/tdp/hadoop/bin/hdfs --config {{ hadoop_conf_dir }} dfs -put {{ binaries_upload_dir }}/{{ tez_dist_file }} /tdp/tez"
roles/hive/common/templates/hive-env.sh.j2:export AUX_CLASSPATH="/opt/tdp/tez/*:/opt/tdp/tez/lib/*"
roles/spark/README.md:spark-submit --class org.apache.spark.examples.SparkPi --master yarn --deploy-mode cluster /opt/tdp/spark/examples/jars/spark-examples_2.11-2.3.5-TDP-0.1.0-SNAPSHOT.jar 100
roles/spark/README.md:spark3-submit --class org.apache.spark.examples.SparkPi --master yarn --deploy-mode cluster /opt/tdp/spark3/examples/jars/spark-examples_2.12-3.2.2-TDP-0.1.0-SNAPSHOT.jar 100
roles/knox/ranger/tasks/config.yml:# It can also be configured with COMPONENT_INSTALL_DIR_NAME but we still have to make /opt/tdp/knox/conf
roles/knox/ranger/tasks/init.yml:  shell: "ln -s /opt/tdp/hadoop/share/hadoop/hdfs/hadoop-hdfs-* /opt/tdp/ranger-knox-plugin/lib/ranger-knox-plugin-impl/"

This create issue when using non default installation dir