0

在构建以下 Infosphere 流应用程序时,我收到如下引用的错误消息。请指教。

namespace application;

use com.ibm.streams.db::*;

composite DB {

type
        temp1 = tuple<int32 i, rstring dateTime, timestamp time, uint32 secondValue,
            int64 seconds> ;
    graph
        stream<int32 id, rstring fname, rstring lname> MyPersonNamesStream = ODBCSource()
        {
            param
                connection : "ConnncetionSpec" ;
                access : "AccessSpec" ;
                connectionDocument : "/home/streamsadmin/Desktop/connectionDocument.xml" ;
                initDelay : 3 ;
                sleepTime : 6 ;
        }

}

我已经在我的 .bashrc 中设置了环境变量

export STREAMS_ADAPTERS_ODBC_DB2=1
export STREAMS_ADAPTERS_ODBC_INCPATH=/opt/ibm/db2/V10.1/include/
export STREAMS_ADAPTERS_ODBC_LIBPATH=/opt/ibm/db2/V10.1/lib64/

错误信息如下_

CDISP0411W WARNING: The error output from the /opt/ibm/InfoSphereStreams/StreamsStudio/workspace/DB/com.ibm.streams.db/com.ibm.streams.db/Common/ODBCLibInfo.pl script is: No STREAMS_ADAPTERS_ODBC environment variable set.  Exactly one environment variable beginning with STREAMS_ADAPTERS_ODBC_ (ending with the database name qualifier) must be set.
.
/opt/ibm/InfoSphereStreams/StreamsStudio/workspace/DB/com.ibm.streams.db/com.ibm.streams.db/ODBCSource/ODBCSource: CDISP0180E ERROR: An error occurred while the operator model was loading. The error is: The following non-zero return code was received from the /opt/ibm/InfoSphereStreams/StreamsStudio/workspace/DB/com.ibm.streams.db/com.ibm.streams.db/Common/ODBCLibInfo.pl script: 1.
4

1 回答 1

0

验证您所做的.bashrc更改:

env | grep STREAMS_ADAPTERS_ODBC_

如果没有结果,请尝试打开一个新的终端会话以使您的.bashrc更改生效,并使用相同的命令进行确认。

于 2014-05-23T19:25:40.877 回答