[
https://issues.apache.org/jira/browse/AMBARI-13251?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14933960#comment-14933960
]
Hudson commented on AMBARI-13251:
---------------------------------
SUCCESS: Integrated in Ambari-trunk-Commit #3554 (See
[https://builds.apache.org/job/Ambari-trunk-Commit/3554/])
AMBARI-13251. RU - HDFS_Client restart and hdp-select causes
dfs_data_dir_mount.hist to be lost, move file to static location (alejandro)
(afernandez:
http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=6a5a6a3963035a9967dc82cd5a1795c23dca2bc3)
*
ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/configuration/hadoop-env.xml
*
ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/package/alerts/alert_datanode_unmounted_data_dir.py
*
ambari-server/src/test/python/stacks/2.2/configs/default_custom_path_config.json
* ambari-server/src/test/python/stacks/2.0.6/configs/hbase-2.2.json
* ambari-server/src/test/python/stacks/2.2/configs/ranger-usersync-upgrade.json
* ambari-server/src/test/python/stacks/2.2/configs/spark-job-history-server.json
* ambari-server/src/test/python/stacks/2.2/configs/ranger-admin-upgrade.json
* ambari-server/src/test/python/stacks/2.0.6/configs/default_no_install.json
*
ambari-server/src/main/resources/stacks/BIGTOP/0.8/services/HDFS/package/scripts/params.py
* ambari-web/app/data/BIGTOP/site_properties.js
*
ambari-server/src/test/python/stacks/2.0.6/HDFS/test_alert_datanode_unmounted_data_dir.py
* ambari-server/src/test/python/stacks/2.0.6/configs/ranger-namenode-start.json
* ambari-server/src/test/python/stacks/2.0.6/configs/default.json
* ambari-server/src/test/python/stacks/2.2/configs/oozie-downgrade.json
* ambari-web/app/assets/data/configurations/config_versions.json
* ambari-server/src/test/python/stacks/2.3/configs/spark_default.json
* ambari-agent/src/main/python/ambari_agent/Controller.py
* ambari-server/src/test/python/stacks/2.0.6/configs/hbase-rs-2.2.json
*
ambari-server/src/test/resources/custom_actions/ru_execute_tasks_namenode_prepare.json
* ambari-server/src/test/python/stacks/2.0.6/configs/nn_ru_lzo.json
* ambari-server/src/test/python/stacks/2.0.6/configs/hbase-check-2.2.json
* ambari-server/src/test/python/stacks/2.0.6/configs/client-upgrade.json
*
ambari-server/src/main/resources/stacks/HDPWIN/2.1/services/HDFS/configuration/hadoop-env.xml
* ambari-web/app/assets/data/stacks/HDP-2.2/configurations.json
*
ambari-server/src/test/python/stacks/2.2/configs/journalnode-upgrade-hdfs-secure.json
* ambari-server/src/test/python/stacks/2.2/configs/ranger-admin-default.json
* ambari-server/src/test/python/stacks/2.2/configs/hive-upgrade.json
* ambari-server/src/test/python/stacks/2.0.6/configs/hbase_no_phx.json
* ambari-server/src/test/python/stacks/2.1/configs/client-upgrade.json
* ambari-agent/src/test/python/resource_management/TestDatanodeHelper.py
* ambari-server/src/test/python/stacks/2.2/configs/falcon-upgrade.json
* ambari-server/src/test/python/stacks/2.0.6/configs/default_hive_non_hdfs.json
*
ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/package/scripts/params_linux.py
* ambari-server/src/test/python/stacks/2.2/configs/oozie-upgrade.json
* ambari-server/src/test/python/stacks/2.2/configs/default.json
*
ambari-server/src/main/java/org/apache/ambari/server/upgrade/UpgradeCatalog212.java
* ambari-server/src/test/python/stacks/2.0.6/configs/hbase_with_phx.json
* ambari-web/app/data/HDP2/site_properties.js
* ambari-server/src/test/python/stacks/2.0.6/configs/secured.json
*
ambari-server/src/test/python/stacks/2.0.6/configs/default_update_exclude_file_only.json
* ambari-server/src/test/python/stacks/2.0.6/configs/default_hive_nn_ha_2.json
* ambari-server/src/test/python/stacks/2.0.6/configs/flume_22.json
* ambari-server/src/test/python/stacks/2.2/configs/journalnode-upgrade.json
* ambari-web/app/assets/data/configurations/service_versions.json
* ambari-server/src/test/python/stacks/2.3/configs/hbase_secure.json
* ambari-server/src/test/python/stacks/2.0.6/configs/default_oozie_mysql.json
* ambari-server/src/test/python/stacks/2.0.6/configs/altfs_plus_hdfs.json
* ambari-server/src/test/python/stacks/2.3/configs/hbase_default.json
*
ambari-server/src/main/resources/stacks/BIGTOP/0.8/services/HDFS/configuration/hadoop-env.xml
* ambari-server/src/test/python/stacks/2.0.6/HDFS/test_datanode.py
* ambari-server/src/test/python/stacks/2.2/configs/knox_upgrade.json
*
ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/package/scripts/hdfs_datanode.py
* ambari-server/src/test/python/stacks/2.0.6/configs/oozie_existing_sqla.json
* ambari-server/src/test/python/stacks/2.0.6/configs/default_hive_nn_ha.json
* ambari-server/src/test/python/stacks/2.2/configs/pig-service-check-secure.json
> RU - HDFS_Client restart and hdp-select causes dfs_data_dir_mount.hist to be
> lost, move file to static location
> ---------------------------------------------------------------------------------------------------------------
>
> Key: AMBARI-13251
> URL: https://issues.apache.org/jira/browse/AMBARI-13251
> Project: Ambari
> Issue Type: Bug
> Components: ambari-server
> Affects Versions: 2.1.2
> Reporter: Alejandro Fernandez
> Assignee: Alejandro Fernandez
> Priority: Blocker
> Fix For: 2.1.2
>
> Attachments: AMBARI-13251.patch
>
>
> During the Clients group of RU, restarting hdfs_client changes changes the
> symlink /usr/hdp/current/hadoop-client/ from the old version to the new
> version.
> Because the Data Dir Mount History file is stored at
> /etc/hadoop/conf/dfs_data_dir_mount.hist and
> /etc/hadoop/conf symlinks to /usr/hdp/current/hadoop-client/conf
> it means that the file must be copied to the new location.
> Multiple clients (HDFS, HBase, Hive, YARN, MapReduce, Pig, Slider, Tez)
> actually end up calling
> {code}
> hdp_select.select("hadoop-client", params.version)
> {code}
> that changes the symlink, so the first one to be ran during RU must copy the
> file. If DataNode is present, it means that HDFS Client is guaranteed to be
> there, and from all of those clients it is the first one in the Upgrade Pack.
> During a Rolling Downgrade, the file should already exist in the previous
> version, and the file is only written to when DataNode is restarted, so we
> are ok.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)