将mq数据导入hdfs

lawou6xi  于 2021-05-29  发布在  Hadoop
关注(0)|答案(1)|浏览(518)

我想使用flume将websphere mq消息导入我的hadoop vm。我以前没有使用过mq,在我的windows计算机上安装了mq版本8.0.0.4并创建了jndi绑定。我已经将jndi绑定文件复制到/etc/flume/conf位置,并为flume创建了conf文件。一旦我启动了Flume代理,我就在下面error:-

Caused by: com.ibm.msg.client.jms.DetailedJMSSecurityException: JMSWMQ2013: The security authentication was not valid that was supplied for QueueManager 'JMSDEMO' with connection mode 'Client' and host name 'XXX.XXX.XX.XX(1414)'

以下是websphere mq日志文件中的错误:-

4/20/2016 22:00:18 - Process(14396.9) User(MUSR_MQADMIN) Program(amqrmppa.exe)
                      Host(armaan) Installation(Installation1)
                      VRMF(8.0.0.4) QMgr(JMSDEMO)

AMQ9245: Unable to obtain account details for channel MCA user ID.

EXPLANATION:
WebSphere MQ was unable to obtain the account details for MCA user ID 'root'.
This user ID was the MCA user ID for channel 'SYSTEM.DEF.SVRCONN' on queue
manager 'JMSDEMO' and may have been defined in the channel definition, or
supplied either by a channel exit or by a client.
ACTION:
Ensure that the user ID is correct and that it is defined on the Windows local
system, the local domain or on a trusted domain. For a domain user ID, ensure
that all necessary domain controllers are available. 
----- cmqxrsrv.c : 2140 -------------------------------------------------------
4/20/2016 22:00:18 - Process(6376.20) User(MUSR_MQADMIN) Program(amqzlaa0.exe)
                      Host(armaan) Installation(Installation1)
                      VRMF(8.0.0.4) QMgr(JMSDEMO)

AMQ7227: WebSphere MQ encountered the following network error: The trust
relationship between this workstation and the primary domain failed.

EXPLANATION:
 MQ failed to successfully complete a network operation due to the specified
error. If the error is encountered on systems that are part of a Windows 2000
domain it can indicate incorrect DNS or WINS configuration.
ACTION:
Ensure that your network is functioning correctly. On the Windows platform
check DNS and/or WINS settings to ensure that domain controllers, used for
authentication or authorisation functions, are accessible. 
----- amqxsecn.c : 5125 -------------------------------------------------------
4/20/2016 22:00:18 - Process(6376.20) User(MUSR_MQADMIN) Program(amqzlaa0.exe)
                      Host(armaan) Installation(Installation1)
                      VRMF(8.0.0.4) QMgr(JMSDEMO)

AMQ8075: Authorization failed because the SID for entity 'root' cannot be
obtained.

EXPLANATION:
The Object Authority Manager was unable to obtain a SID for the specified
entity. This could be because the local machine is not in the domain to locate
the entity, or because the entity does not exist.
ACTION:
Ensure that the entity is valid, and that all necessary domain controllers are
available. This might mean creating the entity on the local machine. 
----- amqzfubn.c : 2421 -------------------------------------------------------
4/20/2016 22:00:18 - Process(6376.20) User(MUSR_MQADMIN) Program(amqzlaa0.exe)
                      Host(armaan) Installation(Installation1)
                      VRMF(8.0.0.4) QMgr(JMSDEMO)

AMQ7227: WebSphere MQ encountered the following network error: The trust
relationship between this workstation and the primary domain failed.

EXPLANATION:
 MQ failed to successfully complete a network operation due to the specified
error. If the error is encountered on systems that are part of a Windows 2000
domain it can indicate incorrect DNS or WINS configuration.
ACTION:
Ensure that your network is functioning correctly. On the Windows platform
check DNS and/or WINS settings to ensure that domain controllers, used for
authentication or authorisation functions, are accessible. 
----- amqxsecn.c : 5125 -------------------------------------------------------
4/20/2016 22:00:18 - Process(6376.20) User(MUSR_MQADMIN) Program(amqzlaa0.exe)
                      Host(armaan) Installation(Installation1)
                      VRMF(8.0.0.4) QMgr(JMSDEMO)

AMQ8075: Authorization failed because the SID for entity 'root' cannot be
obtained.

EXPLANATION:
The Object Authority Manager was unable to obtain a SID for the specified
entity. This could be because the local machine is not in the domain to locate
the entity, or because the entity does not exist.
ACTION:
Ensure that the entity is valid, and that all necessary domain controllers are
available. This might mean creating the entity on the local machine. 
----- amqzfubn.c : 2421 -------------------------------------------------------
4/20/2016 22:00:18 - Process(14396.9) User(MUSR_MQADMIN) Program(amqrmppa.exe)
                      Host(armaan) Installation(Installation1)
                      VRMF(8.0.0.4) QMgr(JMSDEMO)

AMQ9557: Queue Manager User ID initialization failed for 'root'.

EXPLANATION:
The call to initialize the User ID 'root' failed with CompCode 2 and Reason
2035.
ACTION:
Correct the error and try again. 
----- cmqxrsrv.c : 2321 -------------------------------------------------------

我已经以root用户的身份从vm提交了flume命令。我知道我做了一些错误的mq设置,因为我没有以前的mq经验。请帮忙。

kgqe7b3p

kgqe7b3p1#

我知道我做了一些错误的mq设置,因为我以前没有mq的经验。
不如做些自我训练,看看文件。mq知识中心有一个关于mq&jms的完整部分。请在这里读。或者您可以参加世界上最大的专门讨论ibmq(又称webspheremq&mqseries)的会议mq技术会议v2.0.1.6。
只需将凭据放在以下位置:

QueueConnection conn = cf.createQueueConnection(userID, password);

相关问题