[GitHub] incubator-hawq pull request #1206: Set the default_value of JAVA_HOME for ru...
Github user asfgit closed the pull request at: https://github.com/apache/incubator-hawq/pull/1206 --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---
[GitHub] incubator-hawq pull request #1206: Set the default_value of JAVA_HOME for ru...
Github user ljainpivotalio commented on a diff in the pull request: https://github.com/apache/incubator-hawq/pull/1206#discussion_r108581251 --- Diff: ranger-plugin/scripts/enable-ranger-plugin.sh --- @@ -211,6 +211,28 @@ function update_ranger_url() { echo "Updated POLICY_MGR_URL to ${policy_mgr_url} in ${prop_file}" } +function update_java_home() { + local jdk64="/usr/jdk64" + local java_sdk="/etc/alternatives/java_sdk" + + if [[ -d ${jdk64} ]]; then +local DIR_NAME=$(ls ${jdk64} | sort -r | head -1) +if [[ ${DIR_NAME} ]]; then + JAVA_HOME_DIR="${jdk64}/${DIR_NAME}" +fi + elif [[ -d ${java_sdk} ]]; then +JAVA_HOME_DIR="${java_sdk}" + fi + + if [[ ${JAVA_HOME_DIR} ]]; then +local prop_file=$(dirname ${SCRIPT_DIR})/etc/rps.properties +sed -i -e "s|/usr/java/default|${JAVA_HOME_DIR}|g" ${prop_file} --- End diff -- Good catch. Forgot to commit the other 2 files :-( --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---
[GitHub] incubator-hawq pull request #1206: Set the default_value of JAVA_HOME for ru...
GitHub user ljainpivotalio opened a pull request: https://github.com/apache/incubator-hawq/pull/1206 Set the default_value of JAVA_HOME for running RPS Third try ;-( You can merge this pull request into a Git repository by running: $ git pull https://github.com/ljainpivotalio/incubator-hawq HAWQ-1415-3 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/incubator-hawq/pull/1206.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #1206 commit ddbd8dc516529621c2f672b47cef3ac189466fda Author: ljainpivotalioDate: 2017-03-29T02:05:52Z Set the default_value of JAVA_HOME for running RPS --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---