Skip to content
garg-anuj edited this page Feb 28, 2017 · 12 revisions

The Hawkular server is required to run the application. At this point the application is associated with available releases. At the moment it is version Service 0.32.0.Final. The application will require address, port and credentials of the server. The server should either be available inside your network or its IP should be reachable from your android device.

There are multiple ways to bootstrap the server. Because of easy setup, Docker way is preferred for android client developers.

Docker

  • There is official Docker images of the release available on DockerHub at Hawkular services. More easy way is to use docker-compose with this template-docker-compose.yml

  • There are also unofficial Docker images of the release and also an instrumented WildFly available on DockerHub at Hawkular services and Instrumented WildFly. Both images have been instrumented with the jdoe/password user for the Hawkular server and the agent.

Also check blog on some more details about using those images.

Local

HAWKULAR_VERSION="0.32.0.Final"

HAWKULAR_URL="https://github.com/hawkular/hawkular-services/releases/download"
HAWKULAR_DIRECTORY="hawkular"
HAWKULAR_FILE="hawkular.tar.gz"

mkdir "${HAWKULAR_DIRECTORY}"
cd "${HAWKULAR_DIRECTORY}"

curl -L "${HAWKULAR_URL}/${HAWKULAR_VERSION}/hawkular-services-dist-${HAWKULAR_VERSION}.tar.gz" \
--output "${HAWKULAR_FILE}"
tar --extract --gzip --file "${HAWKULAR_FILE}"

export HAWKULAR_HOME="/path/to/hawkular-services"
export HAWKULAR_USERNAME="jdoe"
export HAWKULAR_PASSWORD="password"

cd "${HAWKULAR_HOME}"
"${HAWKULAR_HOME}/bin/add-user.sh" \
  -a \
  -u "${HAWKULAR_USERNAME}" \
  -p "${HAWKULAR_PASSWORD}" \
  -g read-write,read-only
"${HAWKULAR_HOME}/bin/standalone.sh" -b 0.0.0.0 \
-Dhawkular.rest.user="${HAWKULAR_USERNAME}" -Dhawkular.rest.password="${HAWKULAR_PASSWORD}"

Before starting the server, you need to have Cassandra 3.7 up and running with the RPC port enabled either via setting the env variable of CASSANDRA_START_RPC to true

or by editing cassandra.yml and setting it there:

# Whether to start the thrift rpc server.
start_rpc: true

Using ccm you can use this to update the config: ccm updateconf 'start_rpc: true'. Another option is via nodetool enablethrift.

Further details for setup with Service 0.32.0.Final is available at hawkular blog.

Clone this wiki locally