Vikas,
Thanks for replying. After linking back impalad and statestored from
/usr/lib/impala/sbin, I was able to start statestored but got some error
while starting impalad
/**
+ date
+ date
Thu Jan 24 16:18:36 PST 2013
+ export IMPALA_CONF_DIR=/var/run/cloudera-scm-agent/process/197-impala-IMPALAD/impala-conf
+ IMPALA_CONF_DIR=/var/run/cloudera-scm-agent/process/197-impala-IMPALAD/impala-conf
+ export HADOOP_CONF_DIR=/var/run/cloudera-scm-agent/process/197-impala-IMPALAD/hadoop-conf
+ HADOOP_CONF_DIR=/var/run/cloudera-scm-agent/process/197-impala-IMPALAD/hadoop-conf
+ export HIVE_CONF_DIR=/var/run/cloudera-scm-agent/process/197-impala-IMPALAD/hive-conf
+ HIVE_CONF_DIR=/var/run/cloudera-scm-agent/process/197-impala-IMPALAD/hive-conf
+ export HBASE_CONF_DIR=/var/run/cloudera-scm-agent/process/197-impala-IMPALAD/hbase-conf
+ HBASE_CONF_DIR=/var/run/cloudera-scm-agent/process/197-impala-IMPALAD/hbase-conf
+ FLAG_FILE=/var/run/cloudera-scm-agent/process/197-impala-IMPALAD/impala-conf/impalad_flags
+ perl -pi -e 's#{{CMF_CONF_DIR}}#/var/run/cloudera-scm-agent/process/197-impala-IMPALAD#g' /var/run/cloudera-scm-agent/process/197-impala-IMPALAD/impala-conf/impalad_flags
+ '[' impalad = impalad ']'
+ exec impalad --flagfile=/var/run/cloudera-scm-agent/process/197-impala-IMPALAD/impala-conf/impalad_flags
Environment variable CLASSPATH not set!
getJNIEnv: getGlobalJNIEnv failed
Environment variable CLASSPATH not set!
getJNIEnv: getGlobalJNIEnv failed
Environment variable CLASSPATH not set!
getJNIEnv: getGlobalJNIEnv failed
E0124 16:18:36.749694 19556 impalad-main.cc:81] Failed to get/create JVM
+ date
+ date
Thu Jan 24 16:18:37 PST 2013
+ export IMPALA_CONF_DIR=/var/run/cloudera-scm-agent/process/197-impala-IMPALAD/impala-conf
+ IMPALA_CONF_DIR=/var/run/cloudera-scm-agent/process/197-impala-IMPALAD/impala-conf
+ export HADOOP_CONF_DIR=/var/run/cloudera-scm-agent/process/197-impala-IMPALAD/hadoop-conf
+ HADOOP_CONF_DIR=/var/run/cloudera-scm-agent/process/197-impala-IMPALAD/hadoop-conf
+ export HIVE_CONF_DIR=/var/run/cloudera-scm-agent/process/197-impala-IMPALAD/hive-conf
+ HIVE_CONF_DIR=/var/run/cloudera-scm-agent/process/197-impala-IMPALAD/hive-conf
+ export HBASE_CONF_DIR=/var/run/cloudera-scm-agent/process/197-impala-IMPALAD/hbase-conf
+ HBASE_CONF_DIR=/var/run/cloudera-scm-agent/process/197-impala-IMPALAD/hbase-conf
+ FLAG_FILE=/var/run/cloudera-scm-agent/process/197-impala-IMPALAD/impala-conf/impalad_flags
+ perl -pi -e 's#{{CMF_CONF_DIR}}#/var/run/cloudera-scm-agent/process/197-impala-IMPALAD#g' /var/run/cloudera-scm-agent/process/197-impala-IMPALAD/impala-conf/impalad_flags
+ '[' impalad = impalad ']'
+ exec impalad --flagfile=/var/run/cloudera-scm-agent/process/197-impala-IMPALAD/impala-conf/impalad_flags
Environment variable CLASSPATH not set!
getJNIEnv: getGlobalJNIEnv failed
Environment variable CLASSPATH not set!
getJNIEnv: getGlobalJNIEnv failed
Environment variable CLASSPATH not set!
getJNIEnv: getGlobalJNIEnv failed
E0124 16:18:37.914975 19591 impalad-main.cc:81] Failed to get/create JVM
+ date
+ date
Thu Jan 24 16:18:39 PST 2013
+ export IMPALA_CONF_DIR=/var/run/cloudera-scm-agent/process/197-impala-IMPALAD/impala-conf
+ IMPALA_CONF_DIR=/var/run/cloudera-scm-agent/process/197-impala-IMPALAD/impala-conf
+ export HADOOP_CONF_DIR=/var/run/cloudera-scm-agent/process/197-impala-IMPALAD/hadoop-conf
+ HADOOP_CONF_DIR=/var/run/cloudera-scm-agent/process/197-impala-IMPALAD/hadoop-conf
+ export HIVE_CONF_DIR=/var/run/cloudera-scm-agent/process/197-impala-IMPALAD/hive-conf
+ HIVE_CONF_DIR=/var/run/cloudera-scm-agent/process/197-impala-IMPALAD/hive-conf
+ export HBASE_CONF_DIR=/var/run/cloudera-scm-agent/process/197-impala-IMPALAD/hbase-conf
+ HBASE_CONF_DIR=/var/run/cloudera-scm-agent/process/197-impala-IMPALAD/hbase-conf
+ FLAG_FILE=/var/run/cloudera-scm-agent/process/197-impala-IMPALAD/impala-conf/impalad_flags
+ perl -pi -e 's#{{CMF_CONF_DIR}}#/var/run/cloudera-scm-agent/process/197-impala-IMPALAD#g' /var/run/cloudera-scm-agent/process/197-impala-IMPALAD/impala-conf/impalad_flags
+ '[' impalad = impalad ']'
+ exec impalad --flagfile=/var/run/cloudera-scm-agent/process/197-impala-IMPALAD/impala-conf/impalad_flags
Environment variable CLASSPATH not set!
getJNIEnv: getGlobalJNIEnv failed
Environment variable CLASSPATH not set!
getJNIEnv: getGlobalJNIEnv failed
Environment variable CLASSPATH not set!
getJNIEnv: getGlobalJNIEnv failed
E0124 16:18:39.950352 19595 impalad-main.cc:81] Failed to get/create JVM
+ date
+ date
Thu Jan 24 16:18:42 PST 2013
+ export IMPALA_CONF_DIR=/var/run/cloudera-scm-agent/process/197-impala-IMPALAD/impala-conf
+ IMPALA_CONF_DIR=/var/run/cloudera-scm-agent/process/197-impala-IMPALAD/impala-conf
+ export HADOOP_CONF_DIR=/var/run/cloudera-scm-agent/process/197-impala-IMPALAD/hadoop-conf
+ HADOOP_CONF_DIR=/var/run/cloudera-scm-agent/process/197-impala-IMPALAD/hadoop-conf
+ export HIVE_CONF_DIR=/var/run/cloudera-scm-agent/process/197-impala-IMPALAD/hive-conf
+ HIVE_CONF_DIR=/var/run/cloudera-scm-agent/process/197-impala-IMPALAD/hive-conf
+ export HBASE_CONF_DIR=/var/run/cloudera-scm-agent/process/197-impala-IMPALAD/hbase-conf
+ HBASE_CONF_DIR=/var/run/cloudera-scm-agent/process/197-impala-IMPALAD/hbase-conf
+ FLAG_FILE=/var/run/cloudera-scm-agent/process/197-impala-IMPALAD/impala-conf/impalad_flags
+ perl -pi -e 's#{{CMF_CONF_DIR}}#/var/run/cloudera-scm-agent/process/197-impala-IMPALAD#g' /var/run/cloudera-scm-agent/process/197-impala-IMPALAD/impala-conf/impalad_flags
+ '[' impalad = impalad ']'
+ exec impalad --flagfile=/var/run/cloudera-scm-agent/process/197-impala-IMPALAD/impala-conf/impalad_flags
Environment variable CLASSPATH not set!
getJNIEnv: getGlobalJNIEnv failed
Environment variable CLASSPATH not set!
getJNIEnv: getGlobalJNIEnv failed
Environment variable CLASSPATH not set!
getJNIEnv: getGlobalJNIEnv failed
E0124 16:18:42.983335 19599 impalad-main.cc:81] Failed to get/create JVM
**/
My install was working fine before I started building impalad - so I'm not sure whether build script somehow deletes existing
impalad/statestored if it finds in /usr/bin folder?
Now it is complaining about some missing environment variables - I wasn't setting these before as well. Did I lose a script file which is setting environment
variable?
Yes, I have not updated my CM yet. When I tried to udpate using the instructions here
https://ccp.cloudera.com/display/FREE41DOC/Upgrade+from+Cloudera+Manager+4+to+the+Latest+Version+of+Cloudera+Manager+4I got the following message -
[root@khadi01-rhvm01 local]# sudo yum update --disablerepo='*' --enablerepo=cloudera-manager
Loaded plugins: product-id, refresh-packagekit, rhnplugin, subscription-manager
Updating certificate-based repositories.
Unable to read consumer identity
Repository 'dvd' is missing name in configuration, using id
cloudera-manager | 951 B 00:00
cloudera-manager/primary | 3.6 kB 00:00
cloudera-manager 7/7
Setting up Update Process
No Packages marked for Update
Now when I check "host inspector" result, I see that there exists mixed CDH versions. It seems my upgrade didn't go well. Correct?
Thanks.
-Dipesh
Thanks.
-Dipesh
On Thursday, January 24, 2013 3:03:20 PM UTC-8, vikas wrote:Hi Dipesh,
The binary is looked in the default PATH and impalad isn't present in it.
You might want to symlink the build you created to /usr/bin.
Also, it seems you aren't using the latest CM build, it has been updated
to use full impala path when calling 'exec' instead of just 'impalad'.
Vikas
On Thu, Jan 24, 2013 at 2:41 PM, Deepsoft <dipeshs...@gmail.com<javascript:>
wrote:
I have impala and other services running on a node. I have built impalad
on the same node - following the instructions.
Now when I'm trying to start impala service along with other services
through cloudera manager but it is not starting and logs are showing this
error -
/**
+ exec impalad
--flagfile=/var/run/cloudera-scm-agent/process/157-impala-IMPALAD/impala-conf/impalad_flags
/usr/lib64/cmf/service/impala/impala.sh: line 23: exec: impalad: not found
*/
When I search in my system I see that I have impalad at my installed
location which is /usr/lib/imapla/sbin/impalad
# find / -name impalad
/var/log/impalad
/usr/lib/impala/sbin/impalad
/usr/lib64/cmf/agent/src/cmf/monitor/impalad
/home/src/impala/impala/be/build/debug/service/impalad
The highlighted location is the one where I have build impalad.
Where is imapla.sh looking for impalad? I didn't modify anything - Does
the build process delete impalad? Where should I copy impalad so that this
script file finds it again and start the service?
Thanks.
--