TalendMDM Installation On CentOS 5.7 Server With Apache mod_proxy_ajp

Prior to installation make sure your server complies to requirements to be found on: http://www.talend.com/docs/community/prerequisites.html

All steps are executed as ‘root’.

Connect to the server with X-forwarding enabled:

# ssh -X -p <port number> [email protected]

 

0.) Change to /opt directory where we will be working:

# cd /opt

 

1.) Download latest Oracle JDK and untar it to /opt (e.g.: /opt/jdk1.7.0_06)

2.) Download latest stable release of TOS_MDM_All and unzip it to /opt
This will create two files (e.g.: /opt/TOS_MDM-Studio-r84309-V5.1.1.zip and /opt/TOS_MDM-Server-r84309-V5.1.1.jar)

3.) Prepare user:

# groupadd talend
# useradd -d /opt/talend -s /bin/bash -g talend talend

 

4.) Modify environment variables for newly created 'talend' user:

# vi /opt/talend/.bash_profile

Add/modify following lines

JAVA_HOME=/opt/jdk1.7.0_06
export JAVA_HOME
PATH=$JAVA_HOME/bin:$PATH:$HOME/bin
export PATH
JBOSS_HOME=/opt/talend/jboss-4.2.2.GA
export JBOSS_HOME

Check (optional):

# su - talend
$ echo $JAVA_HOME; echo $JBOSS_HOME; echo $PATH

Output should match previous values we set in profile.

 

5.) Install/unpack TOS_MDM-Server:

# JAVA_HOME=/opt/jdk1.7.0_06 PATH=$PATH:$JAVA_HOME/bin java -jar ./TOS_MDM-Server-r84309-V5.1.1.jar

When prompted for installation path navigate to /opt/talend and extract there.

Tick all boxes (e.g. Jboss & TOSMDM too) to install whole bundle.

Choose default jBoss port if no other jBoss instance is running on the server (e.g.: 8080).

 

6.) Create init script:

# cp /opt/talend/jboss-4.2.2.GA/bin/jboss_init_redhat.sh /etc/init.d/talend

Edit the file:

# vi /etc/init.d/talend

On lines 3-5 add following (including sharp signs):

# description: JBoss Start Stop Restart
# processname: jboss
# chkconfig: 2345 20 80

Modify variables as following (according to what we did previously):

JBOSS_HOME=${JBOSS_HOME:-"/opt/talend/jboss-4.2.2.GA"}
JBOSS_USER=${JBOSS_USER:-"talend"}
JAVAPTH=${JAVAPTH:-"/opt/jdk1.7.0_06/bin"}

Add new JBOSS_HOST variable before JBOSS_BIND_ADDR, e.g.:

#if JBOSS_HOST specified, use -b to bind jboss services to that address
JBOSS_HOST="0.0.0.0"
JBOSS_BIND_ADDR=${JBOSS_HOST:+"-b $JBOSS_HOST"}

Save and close.

 

7.) Enable the service and start it:

# chmod 755 /etc/init.d/talend
# chkconfig --add talend
# chkconfig --level 2345 talend on

Check the runlevels:

# chkconfig --list talend

Start the service:

# service talend start

Check if processes are running and applications is listening on specified ports (e.g. 8080, 8009):

# ps -fu talend
# netstat -talp

Stop the service:

# service talend stop

 

8.) Apache mod_proxy_ajp configuration for tomcat (e.g.: tomcat port/8009):

Make a backup of the file:

# cp -p /etc/httpd/conf.d/proxy_ajp.conf /etc/httpd/conf.d/proxy_ajp.conf.orig
# echo > /etc/httpd/conf.d/proxy_ajp.conf
# vi /etc/httpd/conf.d/proxy_ajp.conf

Add following lines:

        ####################################
        # /etc/httpd/conf.d/proxy_ajp.conf #
        ####################################

        LoadModule proxy_ajp_module modules/mod_proxy_ajp.so

        RewriteEngine On
        ProxyRequests Off

        # Make exceptions for existing sites/paths not-to-be-proxyfied

        ProxyPass /myexamplepath1 !
        ProxyPass /examplesite1 !
        ProxyPass /myexamplesite2 !

        # Set proxyfying for all sites (exceptions are specified above)
        # including ProxyPassReverse and ProxyPassCookiePath

        <Location />
                ProxyPass ajp://localhost.localdomain:8009/
                ProxyPassReverse http://locahost.localdomain/
                ProxyPassReverseCookiePath / /
        </Location>

Restart Apache to apply new settings:

# service httpd restart

 

9.) Reboot the server and done (if downtime is allowed):

# shutdown -r now

#################################################################################################

Logs:

# su - talend

Jboss boot log:

$ less $JBOSS_HOME/server/default/log/boot.log

Jboss server log:

$ less $JBOSS_HOME/server/default/log/server.log

#################################################################################################

User access settings:

# vi /opt/talend/jboss-4.2.2.GA/server/default/conf/login-config.xml

For user credentials configuration find following section:

        <login-module code="org.talend.mdm.jaas.jboss.open.SimpleLoginModule"
          flag="required">
          <module-option name="unauthenticatedIdentity">anonymous</module-option>
          <module-option name="logins">admin,administrator,user</module-option>
          <module-option name="passwords">talend,administrator,user</module-option>
        </login-module>

Change according to your needs, e.g.:

        <login-module code="org.talend.mdm.jaas.jboss.open.SimpleLoginModule"
          flag="required">
          <module-option name="unauthenticatedIdentity">anonymous</module-option>
          <module-option name="logins">admin,administrator,user</module-option>
          <module-option name="passwords">talend,administrator,resu</module-option>
        </login-module>

See lines with 'logins' and 'passwords' - it is changed from 'user/user' to 'user/resu' now.

#################################################################################################

Note from official site:

Supported web browsers are Microsoft IE 7+ and Mozilla FireFox 3+.
Safari, Opera and Chrome should work but they are not officially supported.

#################################################################################################

 

Resources:

http://talendforge.org/wiki/doku.php?id=mdmce:installation_guide
https://docs.google.com/document/d/1hTs0zKDvMq1AN_mliYbkSNWavGvX5upjAKIKPXyAPi4/edit
http://www.talendforge.org/bugs/index_jira.php?id=TDI-9380
https://jira.talendforge.org/browse/TMDM-2518?page=com.atlassian.streams.streams-jira-plugin%253Aactivity-stream-issue-tab
http://www.davidghedini.com/pg/entry/how_to_install_jboss_6
http://httpd.apache.org/docs/2.2/mod/mod_proxy_ajp.html
http://www.humboldt.co.uk/2009/02/the-mystery-of-proxypassreverse.html
http://wiki.apache.org/cocoon/ApacheModProxy

Share this page:

0 Comment(s)