Hi,
I’ve build trafodion under the latest code of Oct 23, but the
trafodion can’t startup. How can I solve this problem.
There is some details of the startup info and env.
The details of sqstart:
[lijian@redhat-72 ~]$ sqstart
Checking orphan processes.
Removing old mpijob* files from
/home/lijian/trafodion_build/incubator-trafodion-master/core/sqf/tmp
Removing old monitor.port* files from
/home/lijian/trafodion_build/incubator-trafodion-master/core/sqf/tmp
Executing sqipcrm (output to sqipcrm.out)
Starting the SQ Environment (Executing
/home/lijian/trafodion_build/incubator-trafodion-master/core/sqf/sql/scripts/gomon.cold)
Background SQ Startup job (pid: 17369)
# of SQ processes: 11
SQ Startup script
(/home/lijian/trafodion_build/incubator-trafodion-master/core/sqf/sql/scripts/gomon.cold)
ran successfully. Performing further checks...
The SQ environment is partially up! Continuing checks.
Checking.....
Checking if processes are up.
Checking attempt: 1; user specified max: 2. Execution time in seconds: 0.
The SQ environment is up!
The SQ environment is partially up and operational.
Process Configured Actual Down
------- ---------- ------ ----
DTM 2 1 \$TM1
RMS 4 2 \$ZSC001 \$ZSM001
MXOSRVR 4 0 4
Wed Oct 28 18:00:38 CST 2015
Checking if processes are up.
Checking attempt: 1; user specified max: 1. Execution time in seconds: 0.
The SQ environment is up!
The SQ environment is partially up and operational.
Process Configured Actual Down
------- ---------- ------ ----
DTM 2 1 \$TM1
RMS 4 2 \$ZSC001 \$ZSM001
MXOSRVR 4 0 4
DCS is not started. Please start Trafodion ...
Checking if processes are up.
Checking attempt: 1; user specified max: 2. Execution time in seconds: 0.
The SQ environment is up!
The SQ environment is partially up and operational.
Process Configured Actual Down
------- ---------- ------ ----
DTM 2 1 \$TM1
RMS 4 2 \$ZSC001 \$ZSM001
MXOSRVR 4 0 4
Starting lob server processes
Successfully started $zlobsrv0
Checking if processes are up.
Checking attempt: 1; user specified max: 1. Execution time in seconds: 0.
The SQ environment is up!
The SQ environment is partially up and operational.
Process Configured Actual Down
------- ---------- ------ ----
DTM 2 1 \$TM1
RMS 4 2 \$ZSC001 \$ZSM001
MXOSRVR 4 0 4
REST Server is not started. Please start Trafodion first...
Trafodion is not started...
You can monitor the SQ shell log file :
/home/lijian/trafodion_build/incubator-trafodion-master/core/sqf/logs/sqmon.log
Startup time 0 hour(s) 0 minute(s) 53 second(s)
[lijian@redhat-72 ~]$ sqcheck
Checking if processes are up.
Checking attempt: 1; user specified max: 2. Execution time in seconds: 0.
The SQ environment is up!
The SQ environment is partially up and operational.
Process Configured Actual Down
------- ---------- ------ ----
DTM 2 1 \$TM1
RMS 4 2 \$ZSC001 \$ZSM001
MXOSRVR 4 0 4
[lijian@redhat-72 ~]$ dcscheck
Trafodion is not started...
[lijian@redhat-72 ~]$ rmscheck
Timestamp Id Status
And after sqstart fail, check the details of hadoop env:
[lijian@redhat-72 logs]$ swstatus
6 java servers and 2 mysqld processes are running
17436
43479 ResourceManager
43629 NodeManager
42914 DataNode
42375 NameNode
43209 SecondaryNameNode
44332 HMaster
[lijian@redhat-72 logs]$ hbase shell
2015-10-28 18:01:57,759 INFO [main] Configuration.deprecation:
hadoop.native.lib is deprecated. Instead, use io.native.lib.available
HBase Shell; enter 'help<RETURN>' for list of supported commands.
Type "exit<RETURN>" to leave the HBase Shell
Version 0.98.6-cdh5.3.0, rUnknown, Tue Dec 16 19:18:44 PST 2014
hbase(main):001:0> list
TABLE
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in
[jar:file:/home/lijian/trafodion_build/incubator-trafodion-master/core/sqf/sql/local_hadoop/hbase-0.98.6-cdh5.3.0/lib/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in
[jar:file:/home/lijian/trafodion_build/incubator-trafodion-master/core/sqf/sql/local_hadoop/hadoop-2.5.2/share/hadoop/common/lib/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
2015-10-28 18:02:08,246 WARN [main] util.NativeCodeLoader: Unable to load
native-hadoop library for your platform... using builtin-java classes where
applicable
TRAFODION._DTM_.TLOG0_CONTROL_POINT
TRAFODION._DTM_.TLOG0_LOG_0
TRAFODION._DTM_.TLOG0_LOG_1
TRAFODION._DTM_.TLOG0_LOG_2
TRAFODION._DTM_.TLOG0_LOG_3
TRAFODION._DTM_.TLOG0_LOG_4
TRAFODION._DTM_.TLOG0_LOG_5
TRAFODION._DTM_.TLOG0_LOG_6
TRAFODION._DTM_.TLOG0_LOG_7
TRAFODION._DTM_.TLOG0_LOG_8
TRAFODION._DTM_.TLOG0_LOG_9
TRAFODION._DTM_.TLOG0_LOG_a
TRAFODION._DTM_.TLOG0_LOG_b
TRAFODION._DTM_.TLOG0_LOG_c
TRAFODION._DTM_.TLOG0_LOG_d
TRAFODION._DTM_.TLOG0_LOG_e
TRAFODION._DTM_.TLOG0_LOG_f
17 row(s) in 1.4500 seconds
=> ["TRAFODION._DTM_.TLOG0_CONTROL_POINT", "TRAFODION._DTM_.TLOG0_LOG_0",
"TRAFODION._DTM_.TLOG0_LOG_1", "TRAFODION._DTM_.TLOG0_LOG_2",
"TRAFODION._DTM_.TLOG0_LOG_3", "TRAFODION._DTM_.TLOG0_LOG_4",
"TRAFODION._DTM_.TLOG0_LOG_5", "TRAFODION._DTM_.TLOG0_LOG_6",
"TRAFODION._DTM_.TLOG0_LOG_7", "TRAFODION._DTM_.TLOG0_LOG_8",
"TRAFODION._DTM_.TLOG0_LOG_9", "TRAFODION._DTM_.TLOG0_LOG_a",
"TRAFODION._DTM_.TLOG0_LOG_b", "TRAFODION._DTM_.TLOG0_LOG_c",
"TRAFODION._DTM_.TLOG0_LOG_d", "TRAFODION._DTM_.TLOG0_LOG_e",
"TRAFODION._DTM_.TLOG0_LOG_f"]
Thanks.
-----邮件原件-----
发件人: Gunnar Tapper [mailto:[email protected]]
发送时间: 2015年10月27日 23:32
收件人: [email protected]
主题: RE: 答复: Problem about compile of latest code!
Great job on these instructions!
-----Original Message-----
From: Roberta Marton [mailto:[email protected]]
Sent: Tuesday, October 27, 2015 9:13 AM
To:
[email protected]<mailto:[email protected]>
Subject: RE: 答复: Problem about compile of latest code!
On the build website is a list of all the packages that need to be
installed:
https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=61316378
The log4cxx is included in this list - see prerequisites.
Roberta
-----Original Message-----
From: Lijian (Q) [mailto:[email protected]]
Sent: Tuesday, October 27, 2015 1:50 AM
To:
[email protected]<mailto:[email protected]>
Cc: Nieyuanyuan <[email protected]<mailto:[email protected]>>
Subject: 答复: 答复: Problem about compile of latest code!
Thanks very much, Weiqing Xu.
-----邮件原件-----
发件人: Weiqing Xu [mailto:[email protected]]
发送时间: 2015年10月27日 14:54
收件人:
[email protected]<mailto:[email protected]>
抄送: Nieyuanyuan
主题: Re: 答复: Problem about compile of latest code!
Hi ,
Now, we need log2cxx. If you are using CentOS , you can try "sudo yum install
log4cxx log4cxx-devel " to install them .
Best Regards,
Weiqing Xu
On Tue, Oct 27, 2015 at 2:47 PM, Lijian (Q)
<[email protected]<mailto:[email protected]>> wrote:
> Thanks Weiqing Xu.
>
> I run the steps you give, and find compile error: /usr/bin/ld:
> cannot find -llog4cxx.
> I check all Makefiles and find such results:
>
> [lijian@redhat-72 core]$ find . -name Makefile | xargs grep log4cxx
> ./sqf/src/tm/Makefile: $(CXX) $(LNK_FLGS) $(LIBJVM) -o $@ $(TMOBJS)
> $(LIBSTM) -L$(LIBEXPDIR) -L$(LOG4CXX_LIB_DIR) -llog4cxx -DTM_BUILD_
> ./sqf/src/tm/Makefile: $(CXX) $(DTMOBJS) $(LNK_FLGS) $(LIBSBMSX)
> $(LIBJVM) -L$(LIBEXPDIR) -L$(LOG4CXX_LIB_DIR) -llog4cxx -shared -o $@
> $(LIBSTMOBJS)
> ./sqf/src/tm/Makefile: $(CXX) $(LNK_FLGS) -shared -o $@
> $(LIBSXATMOBJS)
> $(LIBSTMX) -L$(LIBEXPDIR) -L$(LOG4CXX_LIB_DIR) -llog4cxx
> ./sqf/src/tm/Makefile: $(CXX) $(LNK_FLGS) -shared -o $@
> $(LIBXARMOBJS)
> -L$(LIBEXPDIR) -L$(LOG4CXX_LIB_DIR) -llog4cxx -DXARM_BUILD_
> ./conn/odbc/src/odbc/nsksrvr/Makefile:COMMON_LIBS = -lsbfs -lsbms
> -levlsq -lwin -ltdm_sqlcli -larkcmp_dll -L../nsksrvrcore -lmxocore
> -L$(LOG4CXX_LIB_DIR) -llog4cxx
>
> Why there's -llog4cxx, I think it should be -llog4cpp, is there a
> transfer in some scripts? Should i change -llog4cxx to -llog4cpp manually?
>
>
> Thanks!
>
> -----邮件原件-----
> 发件人: Weiqing Xu [mailto:[email protected]]
> 发送时间: 2015年10月27日 13:50
> 收件人:
> [email protected]<mailto:[email protected]>
> 抄送: Nieyuanyuan
> 主题: Re: Problem about compile of latest code!
>
> Hi,
> Could you run "make jdbc_type2_jar" to check if there is any error .
>
> cd $MY_SQROOT/..
> make jdbc_type2_jar
>
>
>
> Best Regards,
> Weiqing Xu
>
> On Tue, Oct 27, 2015 at 11:09 AM, Lijian (Q)
> <[email protected]<mailto:[email protected]>> wrote:
>
> > Hi,
> >
> > I get the latest code from GitHub(
> > https://github.com/apache/incubator-trafodion), and compile
> > trafodion core follow the steps:
> >
> >
> > cd $HOME/trafodion_build/incubator-trafodion-master/core/sqf
> >
> > source ./sqenv.sh
> >
> > cd $MY_SQROOT/..
> >
> > make all
> >
> > Build is successful, but I find in the directory:core/sqf/export/lib
> > there's not jdbcT2.jar and hbase-trx*.jar. Only jdbcT4.jar is compiled.
> > I must enter conn/jdbc_type2 and run 'ant' to compile jdbcT2.jar and
> > enter sqf/src/seatrans/hbase-trx and run 'make all' to compile
> > hbase-trx*.jar.
> >
> > I don't know whether this is a problem.
> >
> > Thanks!
> >
>