Repository: ambari
Updated Branches:
  refs/heads/branch-2.4 3cba73acf -> 7e93fc334
  refs/heads/trunk 9d6aecf57 -> a63917335


AMBARI-16705. Hive Service check is failed after Upgrade to 2.4.0.0 :[ 
core.exceptions.Fail / "error":"No user found] (aonishuk)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/a6391733
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/a6391733
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/a6391733

Branch: refs/heads/trunk
Commit: a63917335d99a7569eba7d9a392aa940cdafba16
Parents: 9d6aecf
Author: Andrew Onishuk <aonis...@hortonworks.com>
Authored: Tue May 17 17:58:40 2016 +0300
Committer: Andrew Onishuk <aonis...@hortonworks.com>
Committed: Tue May 17 17:58:40 2016 +0300

----------------------------------------------------------------------
 .../HIVE/0.12.0.2.0/package/files/templetonSmoke.sh                | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/a6391733/ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/files/templetonSmoke.sh
----------------------------------------------------------------------
diff --git 
a/ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/files/templetonSmoke.sh
 
b/ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/files/templetonSmoke.sh
index 3c4a245..8d763cb 100644
--- 
a/ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/files/templetonSmoke.sh
+++ 
b/ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/files/templetonSmoke.sh
@@ -57,6 +57,7 @@ fi
 
 #try hcat ddl command
 echo "user.name=${smoke_test_user}&exec=show databases;" > 
${tmp_dir}/show_db.post.txt
+/var/lib/ambari-agent/ambari-sudo.sh chown ${smoke_test_user} 
${tmp_dir}/show_db.post.txt
 cmd="${kinitcmd}curl --negotiate -u : -s -w 'http_code <%{http_code}>' -d  
@${tmp_dir}/show_db.post.txt  $ttonurl/ddl 2>&1"
 retVal=`/var/lib/ambari-agent/ambari-sudo.sh su ${smoke_test_user} -s 
/bin/bash - -c "$cmd"`
 httpExitCode=`echo $retVal |sed 's/.*http_code <\([0-9]*\)>.*/\1/'`
@@ -77,6 +78,7 @@ fi
 
 #create, copy post args file
 echo -n "user.name=${smoke_test_user}&file=/tmp/$ttonTestScript" > 
${tmp_dir}/pig_post.txt
+/var/lib/ambari-agent/ambari-sudo.sh chown ${smoke_test_user} 
${tmp_dir}/pig_post.txt
 
 #submit pig query
 cmd="curl --negotiate -u : -s -w 'http_code <%{http_code}>' -d  
@${tmp_dir}/pig_post.txt  $ttonurl/pig 2>&1"

Reply via email to