When you need to automate or repeat installations, you can set the installer to perform a non-interactive installation, based on an answer file, which the installer can create automatically from the answers you specify during an interactive installation.
Use -r, -a, and -d switches
The install script has the following options:
$ ./rhino-install.sh -h Usage: ./rhino-install.sh [options] Command line options: -h, --help - Print this usage message. -a - Perform an automated install. This will perform a non-interactive install using the installation defaults. -r <file> - Reads in the properties from <file> before starting the install. This will set the installation defaults to the values contained in the properties file. -d <file> - Outputs a properties file containing the selections made during install (suitable for use with -r).
You’ll use:
-
-d
to create the answer file -
-r
to read the answer file -
-a
to install in non-interactive mode.
For example, to create the answer file:
$ ./rhino-install.sh -d answer.config
And then to install, unattended, based on that answer file:
$ ./rhino-install.sh -r answer.config -a
After installing multiple nodes for a cluster unattended, you must manually copy the keystores between them, so the clients can connect. |
Sample "answer" file
Below is an example of an answer file:
DEFAULT_RHINO_HOME=/home/rhino/rhino DEFAULT_JAVA_HOME=/usr/local/java DEFAULT_MANAGEMENT_DATABASE_NAME=rhino DEFAULT_MANAGEMENT_DATABASE_HOST=localhost DEFAULT_MANAGEMENT_DATABASE_PORT=5432 DEFAULT_MANAGEMENT_DATABASE_USER=rhino DEFAULT_MANAGEMENT_DATABASE_PASSWORD=password DEFAULT_SESSION_OWNERSHIP_FACILITY_ENABLED=False DEFAULT_REPLICATED_STORAGE_RESOURCE=DomainedMemoryDatabase DEFAULT_CASSANDRA_CONTACT_POINTS=localhost:9042 DEFAULT_CASSANDRA_DATACENTRE=datacenter1 DEFAULT_POOL_MAINTENANCE_KEYSPACE= DEFAULT_DIRECT_STATS_ENABLED=True DEFAULT_DIRECT_STATS_INTERFACE=0.0.0.0 DEFAULT_DIRECT_STATS_PORT_RANGE_MIN=17400 DEFAULT_DIRECT_STATS_PORT_RANGE_MAX=17699 DEFAULT_RHINO_INTERCONNECT_LISTEN_ADDRESS=0.0.0.0 DEFAULT_RHINO_INTERCONNECT_LISTEN_PORT_RANGE_MIN=22020 DEFAULT_RHINO_INTERCONNECT_LISTEN_PORT_RANGE_MAX=22029 DEFAULT_SESSION_OWNERSHIP_STORE_KEYSPACE_PREFIX=rhino_session_ownership_%{cluster_id}_ DEFAULT_SESSION_OWNERSHIP_STORE_ALLOW_DDU= DEFAULT_KEY_VALUE_STORE_KEYSPACE_PREFIX=rhino_kv_%{cluster_id}_ DEFAULT_KEY_VALUE_STORE_ALLOW_DDU= DEFAULT_CLIENTIPS="[fe80:0:0:0:230:1bff:febc:1f29%2] 192.168.0.1 [0:0:0:0:0:0:0:1%1] 127.0.0.1" DEFAULT_RMI_MBEAN_REGISTRY_PORT=1199 DEFAULT_RMI_BIND_ADDRESSES="*" DEFAULT_JMX_SERVICE_PORT=1202 DEFAULT_RHINO_SSL_PORT=1203 DEFAULT_SNAPSHOT_ENABLED=True DEFAULT_SNAPSHOT_INTERFACE=0.0.0.0 DEFAULT_SNAPSHOT_PORT_RANGE_MIN=22000 DEFAULT_SNAPSHOT_PORT_RANGE_MAX=22019 DEFAULT_HEAP_SIZE=3072 DEFAULT_MAX_NEW_SIZE=512 DEFAULT_NEW_SIZE=512 DEFAULT_RHINO_PASSWORD=password DEFAULT_RHINO_USERNAME=admin DEFAULT_RHINO_VIEW_PASSWORD=changeit DEFAULT_RHINO_VIEW_USERNAME=view DEFAULT_RHINO_WATCHDOG_STUCK_INTERVAL=45000 DEFAULT_RHINO_WATCHDOG_THREADS_THRESHOLD=50 DEFAULT_CLUSTERING_MODE=SAVANNA DEFAULT_SAVANNA_COMMS_MODE=MULTICAST DEFAULT_SAVANNA_SCAST_BASE_PORT=12000 DEFAULT_SAVANNA_SCAST_PORT_OFFSET=101 DEFAULT_SAVANNA_CLUSTER_ID=100 DEFAULT_SAVANNA_CLUSTER_ADDR=224.0.50.1 DEFAULT_SAVANNA_MCAST_START=224.0.50.1 DEFAULT_SAVANNA_MCAST_END=224.0.50.8 DEFAULT_LICENSE=- DEFAULT_SAVANNA_SCAST_ENDPOINT_NODE=""