Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Include Page
spaceKeyGrouper
pageTitleNavigation


Info

For Grouper 2.5+ there is an even easier way to install Grouper using the "quickstart container" (maturity level -1)


Description

The Grouper installer admin tool will help Grouper administrators perform tasks administrative tasks on Grouper (generally for grouper installed by the installer but might be useful for other installations as well).  

...

Code Block
What do you want to manage (logs, services, back, exit)?

 


Admin - Manage - Services

Code Block
What do you want to manage (logs, services, back, exit)? : services
What service do you want to manage? database, tomcat, grouperDaemon? :

 


Admin - Manage - Logs

API logs example

...

Admin - manage - services - database (only hsql):

...


Code Block
java –jar grouperInstaller.jar
Do you want to 'install' a new installation of grouper, 'upgrade' an existing installation,
'patch' an existing installation, 'admin' utilities, or 'createPatch' for Grouper developers
(enter: 'install', 'upgrade', 'patch', 'admin', 'createPatch' or blank for the default) [install]: admin
What admin action do you want to do (manage, upgradeTask)? : manage
Enter in the Grouper install directory (note: better if no spaces or special chars): C:/temp/temp/grouperInstaller
What do you want to manage (logs, services, back, exit)? : services
What service do you want to manage? database, tomcat, grouperDaemon? : database
What database action do you want to perform? stop, start, restart, status? : status
grouper.hibernate.properties read from: C:\temp\temp\grouperInstaller\grouper.apiBinary-2.3.0\conf\grouper.hibernate.properties
Database URL (hibernate.connection.url from grouper.hibernate.properties) is: jdbc:hsqldb:hsql://localhost:9001/grouper
Trying query: SELECT 1 FROM INFORMATION_SCHEMA.SYSTEM_USERS
Database could not be connected to from Java. Perhaps it is down or there is a network problem?
Do you want to see the stacktrace from the connection error? (t|f) [f]: 
Press <enter> to continue or type 'exit' to end:
What do you want to manage (logs, services, back, exit)? : services
What service do you want to manage? database, tomcat, grouperDaemon? : database
What database action do you want to perform? stop, start, restart, status? : start
grouper.hibernate.properties read from: C:\temp\temp\grouperInstaller\grouper.apiBinary-2.3.0\conf\grouper.hibernate.properties
Database URL (hibernate.connection.url from grouper.hibernate.properties) is: jdbc:hsqldb:hsql://localhost:9001/grouper
Starting DB with command: C:\dev_inst\java7\bin\java -cp C:\temp\temp\grouperInstaller\grouper.apiBinary-2.3.0\lib\jdbcSamples\hsqldb.jar org.hsqldb.Server -database.0 file:C:\temp\temp\grouperInstaller\grouper.apiBinary-2.3.0\grouper -dbname.0 grouper -port 9001
Success: database is up, connection successful.
Press <enter> to continue or type 'exit' to end:
What do you want to manage (logs, services, back, exit)? : services
What service do you want to manage? database, tomcat, grouperDaemon? : database
What database action do you want to perform? stop, start, restart, status? : status
grouper.hibernate.properties read from: C:\temp\temp\grouperInstaller\grouper.apiBinary-2.3.0\conf\grouper.hibernate.properties
Database URL (hibernate.connection.url from grouper.hibernate.properties) is: jdbc:hsqldb:hsql://localhost:9001/grouper
Trying query: SELECT 1 FROM INFORMATION_SCHEMA.SYSTEM_USERS
Database is up and connection from Java successful.
Press <enter> to continue or type 'exit' to end:
What do you want to manage (logs, services, back, exit)? : services
What service do you want to manage? database, tomcat, grouperDaemon? : database
What database action do you want to perform? stop, start, restart, status? : stop
grouper.hibernate.properties read from: C:\temp\temp\grouperInstaller\grouper.apiBinary-2.3.0\conf\grouper.hibernate.properties
Database URL (hibernate.connection.url from grouper.hibernate.properties) is: jdbc:hsqldb:hsql://localhost:9001/grouper
Shutting down HSQL before starting it by sending the SQL: SHUTDOWN
Success: database is down.
Press <enter> to continue or type 'exit' to end: exit


...

Code Block
[appadmin@i2midev1 grouperInstaller]$ java -jar grouperInstaller.jar 

Do you want to 'install' a new installation of grouper, 'upgrade' an existing installation,
'patch' an existing installation, 'admin' utilities, or 'createPatch' for Grouper developers
(enter: 'install', 'upgrade', 'patch', 'admin', 'createPatch' or blank for the default) [install]: admin
What admin action do you want to do (manage, upgradeTask)? : manage
Enter in the Grouper install directory (note: better if no spaces or special chars) [/tmp/grouperInstaller]: 
What do you want to manage (logs, services, back, exit)? : services
What service do you want to manage? database, tomcat, grouperDaemon? : grouperDaemon
What grouperDaemon action do you want to perform? stop, start, restart, status? : status
In unix you should have a /etc/init.d or launchctl script which manages the grouper daemon (see details on wiki).
If you have a service configured please enter name or <enter> to continue without a service: 
Using shell command: bash
Finding the grouper daemon process with: bash -c "/bin/ps -ef | /bin/grep /tmp/grouperInstaller/grouper.apiBinary-2.3.0/bin/gsh | /bin/grep -- -loader | /bin/grep -v grep"
Grouper loader is running, here is the process output:
appadmin 1900 1 0 22:06 pts/0 00:00:00 /bin/sh /tmp/grouperInstaller/grouper.apiBinary-2.3.0/bin/gsh.sh -loader
Press <enter> to continue or type 'exit' to end:
What do you want to manage (logs, services, back, exit)? : services
What service do you want to manage? database, tomcat, grouperDaemon? : grouperDaemon
What grouperDaemon action do you want to perform? stop, start, restart, status? : stop
In unix you should have a /etc/init.d or launchctl script which manages the grouper daemon (see details on wiki).
If you have a service configured please enter name or <enter> to continue without a service: 
Stopping the grouper daemon is not an exact science, be careful!
This script will find the process id of the daemon and kill it. Make it is correct!
Finding the grouper daemon process with: bash -c "/bin/ps -ef | /bin/grep /tmp/grouperInstaller/grouper.apiBinary-2.3.0/bin/gsh | /bin/grep -- -loader | /bin/grep -v grep"
The command to kill the daemon is: /bin/kill -KILL 1900
Found pid 1900, do you want this script to kill it? (t|f) [t]: 
Finding the grouper daemon process with: bash -c "/bin/ps -ef | /bin/grep /tmp/grouperInstaller/grouper.apiBinary-2.3.0/bin/gsh | /bin/grep -- -loader | /bin/grep -v grep"
Cannot find the grouper daemon process, it is not running
Press <enter> to continue or type 'exit' to end:
What do you want to manage (logs, services, back, exit)? : services
What service do you want to manage? database, tomcat, grouperDaemon? : grouperDaemon
What grouperDaemon action do you want to perform? stop, start, restart, status? : status
In unix you should have a /etc/init.d or launchctl script which manages the grouper daemon (see details on wiki).
If you have a service configured please enter name or <enter> to continue without a service: 
Finding the grouper daemon process with: bash -c "/bin/ps -ef | /bin/grep /tmp/grouperInstaller/grouper.apiBinary-2.3.0/bin/gsh | /bin/grep -- -loader | /bin/grep -v grep"
Cannot find the grouper daemon process, it is not running
Press <enter> to continue or type 'exit' to end:
What do you want to manage (logs, services, back, exit)? : services
What service do you want to manage? database, tomcat, grouperDaemon? : grouperDaemon
What grouperDaemon action do you want to perform? stop, start, restart, status? : start
In unix you should have a /etc/init.d or launchctl script which manages the grouper daemon (see details on wiki).
If you have a service configured please enter name or <enter> to continue without a service:
##################################
Starting the Grouper loader (daemons): bash -c "nohup /tmp/grouperInstaller/grouper.apiBinary-2.3.0/bin/gsh.sh -loader > /dev/null 2>&1 &"

End starting the Grouper loader (daemons)
##################################
Finding the grouper daemon process with: bash -c "/bin/ps -ef | /bin/grep /tmp/grouperInstaller/grouper.apiBinary-2.3.0/bin/gsh | /bin/grep -- -loader | /bin/grep -v grep"
Grouper loader is running, here is the process output:
appadmin 2920 1 0 22:13 pts/0 00:00:00 /bin/sh /tmp/grouperInstaller/grouper.apiBinary-2.3.0/bin/gsh.sh -loader
Press <enter> to continue or type 'exit' to end:
What do you want to manage (logs, services, back, exit)? : services
What service do you want to manage? database, tomcat, grouperDaemon? : grouperDaemon
What grouperDaemon action do you want to perform? stop, start, restart, status? : status
In unix you should have a /etc/init.d or launchctl script which manages the grouper daemon (see details on wiki).
If you have a service configured please enter name or <enter> to continue without a service: 
Finding the grouper daemon process with: bash -c "/bin/ps -ef | /bin/grep /tmp/grouperInstaller/grouper.apiBinary-2.3.0/bin/gsh | /bin/grep -- -loader | /bin/grep -v grep"
Grouper loader is running, here is the process output:
appadmin 2920 1 0 22:13 pts/0 00:00:00 /bin/sh /tmp/grouperInstaller/grouper.apiBinary-2.3.0/bin/gsh.sh -loader
Press <enter> to continue or type 'exit' to end: exit
[appadmin@i2midev1 grouperInstaller]$


...


Admin - Upgrade - Convert ehcache XML to properties

Code Block
[appadmin@i2midev1 patchesAuto]$ java -jar grouperInstaller.jar
Do you want to 'install' a new installation of grouper, 'upgrade' an existing installation,
  'patch' an existing installation, 'admin' utilities, or 'createPatch' for Grouper developers
  (enter: 'install', 'upgrade', 'patch', 'admin', 'createPatch' or blank for the default) [install]: admin
What admin action do you want to do (manage, upgradeTask)? : upgradeTask
What upgrade task do you want to do (convertEhcacheXmlToProperties)? : convertEhcacheXmlToProperties
Note, you need to convert the ehcache.xml file for each Grouper runtime, e.g. loader, WS, UI.
Note, you need to be running Grouper 2.3.0 with API patch 35 installed.
Enter the location of the ehcache.xml file: /opt/tomcats/tomcat_f/webapps/grouper_v2_3/WEB-INF/classes/ehcache.xml
Enter the location of the grouper.cache.base.properties file [/opt/tomcats/tomcat_f/webapps/grouper_v2_3/WEB-INF/classes/grouper.cache.base.properties]:
Enter the location of the grouper.cache.properties file (to be created)  [/opt/tomcats/tomcat_f/webapps/grouper_v2_3/WEB-INF/classes/grouper.cache.properties]:
File was written: /opt/tomcats/tomcat_f/webapps/grouper_v2_3/WEB-INF/classes/grouper.cache.properties

...


sdf

 

 

 

 

 

 







sdf