Versions Compared

Key

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

...

Installation of dependencies

...


1. 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.

...

Check your installation using the command : java  -version


2. Install Maven (Version 3.6.0)

Maven version should be 3 +. 

...

  • sudo apt update
  • sudo apt install maven
  • Check the installation using : mvn -version

3. 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.

4. Install and setup Cassandra(Version 3.11.9)

Install Cassandra

To install Cassandra , follow the below steps

...

Configuration and Service startup

...


1. Start Cassandra Service

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

...

  • Status of xconf server can be verified by using  the command
          bin/nodetool status

2. Configure and Start Application Services

a. Build Project

  • Go to the xconf-server folder and run the following command to download all dependencies.

...

          mvn clean install


b. 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.

...

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

c. 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

...