Software Requirements (Reference setup)


Component


Recommendation

System/OS

Ubuntu 18.04.1 LTS   64 bit
Disk space> 5GB
GITVersion 2.17.1
Python2.7x
Maven3.6.0
Java/JDKJava 8 (JDK version 1.8.0_282)



Installation of dependencies


Install Java JDK

Java JDK version should be 1.8+ for now [Note that it must be 1.8.x for now]. Get the supported version from Oracle or use the OpenJDK packages.

Steps to install Open JDK

Check your installation using the command : java  -version


Install Maven (Version 3.6.0)

Maven version should be 3 +. 

To install maven follow these steps:

Download xconf server code

We can download the latest xconfserver code from https://github.com/rdkcentral/xconfserver. The latest version of the code is available in main branch.

Install and setup Cassandra(Version 3.11.9)

Install Cassandra

To install Cassandra , follow the below steps

Configure Cassandra

Note :  For the next step, make sure that python is installed. Because cqlsh is python based command line tool. If python is not installed , use this command : sudo apt install python2.7

          bin/cqlsh -f  { path-to-the-schem.cql file}
         eg : bin/cqlsh  -f ~/xconf/xconfserver/xconf-angular-admin/src/test/resources/schema.cql
          USE "demo"; 

          DESCRIBE KEYSPACE;


Configuration and Service startup

Start Cassandra Service

          cd apache-cassandra-3.11.9
          sudo bin/cassandra
          bin/nodetool status

Configure and Start Application Services

Build Project

          cd ~/xconf/xconfserver
          mvn clean install


Configure Angular Admin UI


                  

  

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


         cd ~/xconf/xconfserver/xconf-angular-admin

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


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


         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 &