BookmarkSubscribeRSS Feed
jayshree
Fluorite | Level 6
Checked the Deployment Summary :
Have updated Java as well .. but still getting the error ..

Installation
Completed successfully - SAS Private Java Runtime Environment (64-bit)

Any further help from forum would be appreciated
Sajid01
Meteorite | Level 14

Create a file test.sh in the same directory as hq-server.sh.
For safety's sake do not make it executable
Then run it as sh test.sh.
Please post the output
The contents of the file are as follows.


###Replace [SASHOME] with actual path
T_JAVA_HOME=[SASHome]/SASPrivateJavaRunTimeEnvironment/9.4/jre
export ${T_JAVA_HOME}
${T_JAVA_HOME}/bin/java -version

jayshree
Fluorite | Level 6
sh test.sh
test.sh: line 2: export: `/.../SASPrivateJavaRuntimeEnvironment/9.4/jre': not a valid identifier
openjdk version "1.8.0_252"
OpenJDK Runtime Environment (Zulu 8.46.0.20-SA-linux64) (build 1.8.0_252-b14)
OpenJDK 64-Bit Server VM (Zulu 8.46.0.20-SA-linux64) (build 25.252-b14, mixed mode)
Sajid01
Meteorite | Level 14

Please check if the path of SASPrivateJavaRuntimeEnvironment/9.4/jre in the same in hq-server.sh is correct or not.
I see you have the proper java installed,

jayshree
Fluorite | Level 6
I get correct path when i executed few below steps from hq-server.sh code

HQ_JAVA_HOME=/../sas/software/SASPrivateJavaRuntimeEnvironment/9.4/jre
export HQ_JAVA_HOME
JAVA_HOME=${HQ_JAVA_HOME}
HQ_JAVA="${JAVA_HOME}/bin/java"
echo $HQ_JAVA
/.../sas/software/SASPrivateJavaRuntimeEnvironment/9.4/jre/bin/java

hq-server.sh script

# -------------
# Begin HQ Server specific logic
# -------------
HQ_JAVA_HOME=/../sas/software/SASPrivateJavaRuntimeEnvironment/9.4/jre
export HQ_JAVA_HOME

if [ "x${HQ_JAVA_HOME}" != "x" ] ; then
JAVA_HOME=${HQ_JAVA_HOME}
elif [ -d ${SERVER_INSTALL_HOME}/jre ]; then
JAVA_HOME=${SERVER_INSTALL_HOME}/jre
elif [ "x$JAVA_HOME" = "x" ] ; then
case "`uname`" in
Darwin)
JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Home
;;
*)
echo "JAVA_HOME or HQ_JAVA_HOME must be set when invoking the server"
exit 1
;;
esac
fi

HQ_JAVA="${JAVA_HOME}/bin/java"
# verify that the java command actually exists
if [ ! -f "$HQ_JAVA" ]
then
echo Invalid Java Home detected at ${JAVA_HOME}
exit 1
fi

REQUIRED_VERSION_STRING=1.6
# Transform the required version string into a number that can be used in comparisons
REQUIRED_VERSION=`echo ${REQUIRED_VERSION_STRING} | sed -e 's;\.;0;g'`
# Check HQ_JAVA to see if Java version is adequate
if [ ${HQ_JAVA} ]
then
${HQ_JAVA} -version 2> /tmp/tmp.ver
VERSION=`cat /tmp/tmp.ver | grep "java version" | awk '{ print substr($3, 2, length($3)-2); }'`
rm /tmp/tmp.ver
VERSION=`echo $VERSION | awk '{ print substr($1, 1, 3); }' | sed -e 's;\.;0;g'`
if [ ${VERSION} ]
then
if [ ${VERSION} -lt ${REQUIRED_VERSION} ]
then
echo "Java version must be at least ${REQUIRED_VERSION_STRING}."
exit 1
fi
else
echo "Java version was not found."
exit 1
fi
fi
jayshree
Fluorite | Level 6
Already checked this ..
could not find any such file -
/hq_server_java_support.sh

suga badge.PNGThe SAS Users Group for Administrators (SUGA) is open to all SAS administrators and architects who install, update, manage or maintain a SAS deployment. 

Join SUGA 

Get Started with SAS Information Catalog in SAS Viya

SAS technical trainer Erin Winters shows you how to explore assets, create new data discovery agents, schedule data discovery agents, and much more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 21 replies
  • 2613 views
  • 1 like
  • 4 in conversation