Author |
Message
|
scravr |
Posted: Fri Jul 15, 2011 8:06 am Post subject: Broker Toolkit V7: LINUX - create msg-set + bar |
|
|
 Partisan
Joined: 03 Apr 2003 Posts: 391 Location: NY NY USA 10021
|
HI,
Can anyone recommend what to install on LINUX inorder to run both mqsicreatemsgdefs.exe and mqsicreatebar.exe ?
Do I need to install compete toolkit or just exe files? |
|
Back to top |
|
 |
Vitor |
Posted: Fri Jul 15, 2011 8:10 am Post subject: Re: Broker Toolkit V7: LINUX - create msg-set + bar |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
scravr wrote: |
Do I need to install compete toolkit or just exe files? |
You need the toolkit. Almost no parts of WMB or WMQ work with "just a few bits" installed. In this instance the mqsicreatebar runs a headless Eclipse session so requires all of the infrastructure to be in place. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
smdavies99 |
Posted: Fri Jul 15, 2011 8:10 am Post subject: Re: Broker Toolkit V7: LINUX - create msg-set + bar |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
scravr wrote: |
HI,
Can anyone recommend what to install on LINUX inorder to run both mqsicreatemsgdefs.exe and mqsicreatebar.exe ?
Do I need to install compete toolkit or just exe files? |
I know it is Friday but would you please care to explaind just how you are going to get mqsicreatemsgdefs.exe & mqsicreatebar.exe which that last thime I looked were WINDOWS executables to run on Linux?
Beer time methinks. _________________ WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995
Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions. |
|
Back to top |
|
 |
Vitor |
Posted: Fri Jul 15, 2011 8:38 am Post subject: Re: Broker Toolkit V7: LINUX - create msg-set + bar |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
smdavies99 wrote: |
scravr wrote: |
HI,
Can anyone recommend what to install on LINUX inorder to run both mqsicreatemsgdefs.exe and mqsicreatebar.exe ?
Do I need to install compete toolkit or just exe files? |
I know it is Friday but would you please care to explaind just how you are going to get mqsicreatemsgdefs.exe & mqsicreatebar.exe which that last thime I looked were WINDOWS executables to run on Linux?
Beer time methinks. |
Doesn't the Toolkit run on Linux?  _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
smdavies99 |
Posted: Fri Jul 15, 2011 9:49 am Post subject: |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
Yes Vitor,
We both know that the toolkit runs on Linux.
however the OP mentioned the two .exe's. He could be just trying to copy them from Windows?
To scravr,
Just install the whole toolkit (as recommended by Vitor) and you will get all the java libraries etc you need to do the import and create the bar files. _________________ WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995
Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions. |
|
Back to top |
|
 |
Vitor |
Posted: Fri Jul 15, 2011 9:52 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
smdavies99 wrote: |
however the OP mentioned the two .exe's. He could be just trying to copy them from Windows? |
Fair point. I had assumed that was shorthand for pulling the executables off the Linux install media.
And while I thought the toolkit ran on Linux, I was struck with sudden doubt. Too little beer possibly (it's still early afternoon here and they won't let me take the edge off).
But there is....  _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
scravr |
Posted: Thu Jul 21, 2011 6:45 am Post subject: |
|
|
 Partisan
Joined: 03 Apr 2003 Posts: 391 Location: NY NY USA 10021
|
Thanks for responded.
Trying to install I am geeting space error:
[root@USL20000042 IBMInstallationManager]# ./install -nosplash -input mbtoolkit-silent.xml -silent
Error installing.
Available disk space at / is insufficient. Total required space is 1.65 GB. Total available space is 702.30 MB.
How can I redirect temp are to /tmp instead of / ? |
|
Back to top |
|
 |
smdavies99 |
Posted: Thu Jul 21, 2011 7:09 am Post subject: |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
free up some space in your root partition.
find a tree that uses lots of space.
move the tree to a filesystem that has the space.
link the old place to the new one,
Linux/Unix Sysadmin 101 - Day 2. _________________ WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995
Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions. |
|
Back to top |
|
 |
scravr |
Posted: Thu Jul 21, 2011 8:24 am Post subject: |
|
|
 Partisan
Joined: 03 Apr 2003 Posts: 391 Location: NY NY USA 10021
|
root / has minimal space; cannot switch and link.
How can i redirect install dir from / to /toolkitRoot ? |
|
Back to top |
|
 |
scravr |
Posted: Mon Jul 25, 2011 5:33 am Post subject: |
|
|
 Partisan
Joined: 03 Apr 2003 Posts: 391 Location: NY NY USA 10021
|
Toolkit finaly installed !
Runing a msg-flow with JCN on LINUX: The java code executes command lines like:
private void RunCmd(String CommandLine) throws MbException
{
try {
trcFileWrite.write(CommandLine.getBytes());
trcFileWrite.write(System.getProperty("line.separator").getBytes());
Process BuildMsgSet = Runtime.getRuntime().exec(CommandLine);
BuildMsgSet.waitFor();
InputStream stdInput = BuildMsgSet.getInputStream();
InputStream stdError = BuildMsgSet.getErrorStream();
byte buffer[] = new byte [2048];
int read = stdInput.read(buffer);
..
..
..
command lines are: 1st to create a msg-set and 2nd to create a bar from the msg-set
1. /cs/mqm/data/toolkit/toolkit-installdir-july21/mqsicreatemsgdefs -p OMB_MS_CPY_CASH_PAYMENT_PRJ_V0111_FBOC_ADJ -d /var/tmp/
omb_msw_20110722_0618309_20110722_2110577_20110722_5215353_20110722_1844939_20110725_1109227 -data /cs/mqbrkrs/workspaces/J
uly21 -base OMB_GENERIC_MS_FIX_LENGTH_PRJ_ADJ/OMB_GENERIC_MS_FIX_LENGTH_PRJ_ADJ -v -rmp -rmd -msg -opt /cs/mqbrkrs/data/fob
oca/MsgSetWorker/mqsicreatemsgdefs.xml -log /cs/mqbrkrs/data/foboca/MsgSetWorker/MswTrace/cash_payment-M0110-FBOC-HDR.cpy_V
0111_20110725_1109380.log
2. /cs/mqm/data/toolkit/toolkit-installdir-july21/mqsicreatebar -data /cs/mqbrkrs/workspaces/July21 -b /cs/mqbrkrs/workspaces/July21/OMB_SERVICE_USER_SPECIFIC_FILES/USER_MS_COLLECTIONS/OMB_MS_CPY_CASH_PAYMENT_PRJ_V0111_FBOC_ADJ.bar -o OMB_MS_CPY_CASH_PAYMENT_PRJ_V0111_FBOC_ADJ/OMB_MS_CPY_CASH_PAYMENT_PRJ_V0111_FBOC_ADJ/messageSet.mset -p OMB_MS_CPY_CASH_PAYMENT_PRJ_V0111_FBOC_ADJ/OMB_MS_CPY_CASH_PAYMENT_PRJ_V0111_FBOC_AD
1st command line runs fine and creates the msg-set.
2nd command does not return at all. it sleeps on some java function:
$ ps -ef | grep mb
mqbrkrs 31155 31152 0 09:11 ? 00:00:03 /cs/mqm/data/toolkit/toolkit-installdir-july21/jdk/bin/java -Xquickstart -Xms40m -Xmx1024m -Xmnx64m -Xgcpolicy:gencon -Xscmx96m -Xshareclasses:name=IBMSDP_%u -Xnolinenumbers -XX:MaxPermSize=128M -Xmaxf0.1 -Xminf0.05 -cp /cs/mqm/data/toolkit/toolkit-installdir-july21/plugins/org.eclipse.equinox.launcher_1.0.101.R34x_v20081125.jar org.eclipse.equinox.launcher.Main -noupdate -os linux -ws gtk -arch x86 -application com.ibm.etools.mft.bar.cmdline.mqsicreatebar -exitdata /cs/mqm/data/toolkit/toolkit-installdir-july21/mqsicreatebar -exitdata 87004d -data /cs/mqbrkrs/workspaces/July21 -b /cs/mqbrkrs/workspaces/July21/OMB_SERVICE_USER_SPECIFIC_FILES/USER_MS_COLLECTIONS/OMB_MS_CPY_CASH_PAYMENT_PRJ_V0111_FBOC_ADJ.bar -o OMB_MS_CPY_CASH_PAYMENT_PRJ_V0111_FBOC_ADJ/OMB_MS_CPY_CASH_PAYMENT_PRJ_V0111_FBOC_ADJ/messageSet.mset -p OMB_MS_CPY_CASH_PAYMENT_PRJ_V0111_FBOC_ADJ/OMB_MS_CPY_CASH_PAYMENT_PRJ_V0111_FBOC_ADJ -wmbtData -vm /cs/mqm/data/toolkit/toolkit-installdir-july21/jdk/bin/java -vmargs -Xquickstart -Xms40m -Xmx1024m -Xmnx64m -Xgcpolicy:gencon -Xscmx96m -Xshareclasses:name=IBMSDP_%u -Xnolinenumbers -XX:MaxPermSize=128M -Xmaxf0.1 -Xminf0.05 -cp /cs/mqm/data/toolkit/toolkit-installdir-july21/plugins/org.eclipse.equinox.launcher_1.0.101.R34x_v20081125.jar org.eclipse.equinox.launcher.Main -noupdate
mqbrkrs 31698 30761 0 09:21 pts/2 00:00:00 grep mb
$
The flow with both commands runs fine on windows.
any ideas what wrong?
What JAVA parameters need to be changed? Where? |
|
Back to top |
|
 |
fjb_saper |
Posted: Mon Jul 25, 2011 6:08 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Do you have an X11 server attached?  _________________ MQ & Broker admin |
|
Back to top |
|
 |
mqjeff |
Posted: Mon Jul 25, 2011 6:11 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
it might just be taking longer than you think it should to complete.
remember that mqsicreatebar has to fully launch the Toolkit, even though in a headless/background mode, and then run functions within that.
So the first thing to do is make sure you can actually run the Toolkit interactively - which does require an X11 server. |
|
Back to top |
|
 |
|