Versions Compared

Key

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

...

Configuration and Service startup

 Start Start Cassandra Service

  • To start an Xconf application, start the Cassandra server by executing the following commands:  

...

  • Go to the xconf-server folder and run the following command to download all dependencies.
          cd ~/xconf/xconfserver
  • Run the following command from the xconfserver folder 
          mvn clean install


Configure Angular Admin UI


  • For first time application deployment, create a "service.properties"  file under the path xconfserver/xconf-angular-admin/src/main/resources/service.properties with the following contents. The sample service.properties file will be available in xconf-angular-admin/src/test/resources/service.properties, the below content is taken from there and modified with change in cassandra port.

                  

  

cassandra.keyspaceName=demo

cassandra.contactPoints=127.0.0.1

cassandra.username=

cassandra.password=

cassandra.port=9042

cassandra.authKey=


dataaccess.cache.tickDuration=60000

dataaccess.cache.retryCountUntilFullRefresh=10

dataaccess.cache.changedKeysTimeWindowSize=900000

dataaccess.cache.reloadCacheEntries=false

dataaccess.cache.reloadCacheEntriesTimeout=1

dataaccess.cache.reloadCacheEntriesTimeUnit=DAYS

dataaccess.cache.numberOfEntriesToProcessSequentially=10000

dataaccess.cache.keysetChunkSizeForMassCacheLoad=500

dataaccess.cache.changedKeysCfName=XconfChangedKeys4


  • Go to xconf-angular-admin folder
         cd ~/xconf/xconfserver/xconf-angular-admin
  • Run the following command from xconf-angular-admin folder
        mvn jetty:run -DappConfig=${path-to-service-properties} -f pom.xml
  • For first time run only, we need to specify the path to service.properties . For the subsequent runs execute the below command in the folder xconfserver/xconf-angular-admin:          mvn jetty:run

To run the admin UI launch it as http://<XCONF-SERVER-IP>:19093/admin/  in any browser. This will redirect to the login page.

Image Added


If the user wants both read and write permissions ,then enter username and password for the login are admin and admin respectively

If the user wants only read permissions ,then enter username and password for the login are user and user respectively.


Configure DataService


  • For first time application deployment, create a "service.properties"  file under the path xconfserver/xconf-dataservice/src/main/resources/service.properties with the following contents. The sample service.properties file will be available in xconf-dataservice/src/test/resources/service.properties, the below content is taken from there and modified with change in cassandra port.

    cassandra.keyspaceName=demo

    cassandra.contactPoints=127.0.0.1

    cassandra.username=

    cassandra.password=

    cassandra.port=9042

    cassandra.authKey=


    dataaccess.cache.tickDuration=60000

    dataaccess.cache.retryCountUntilFullRefresh=10

    dataaccess.cache.changedKeysTimeWindowSize=900000

    dataaccess.cache.reloadCacheEntries=false

    dataaccess.cache.reloadCacheEntriesTimeout=1

    dataaccess.cache.reloadCacheEntriesTimeUnit=DAYS

    dataaccess.cache.numberOfEntriesToProcessSequentially=10000

    dataaccess.cache.keysetChunkSizeForMassCacheLoad=500

    dataaccess.cache.changedKeysCfName=XconfChangedKeys4


  • Step into xconf-dataservice folder
     
        cd ~xconf/xconfserver/xconf-dataservice
  • Run the following command from xconf-angular-admin folder
        mvn jetty:run -DappConfig=${path-to-service-properties} -f pom.xml

  • For first time run only, we need to specify the path to service.properties . For the subsequent runs execute the below command in the folder xconfserver/xconf-dataservice:

         mvn jetty:run      
  

To launch the application go to http://<XCONF-SERVER-IP>:19092/queries/environments .  To verify, add an entry in the environments tab of the xconf admin application and check whether the same is updated here in data service.


NOTE: To run the Admin UI and data service applications in background start jetty server as follows:

nohup mvn jetty:run &