Central repository for Sophia code
- Install NEO4J DB: http://neo4j.com/download-thanks/?edition=community&flavour=windows&_ga=1.98862107.484321419.1415021153 Multiple Server instances on one machine: http://fooo.fr/~vjeux/github/github-recommandation/db/doc/manual/html/server-installation.html#_multiple_server_instances_on_one_machine
- Install Node.js http://nodejs.org/
- install Erlang OTP (current version is 17): http://www.erlang.org/download.html
- install RabbitMQ server: http://www.rabbitmq.com/download.html Make sure the service is working
- Checkout code
- install Node modules: In Sophia folder, where package.json exists, run: npm install
- Save tests DB: install SQLite DB on Sophia server: https://www.sqlite.org/download.html (to browse DB on windows you can install "DB Browser for SQLite": https://github.com/sqlitebrowser/sqlitebrowser/releases)
- SQLite DB is /Sophia.db
- to create the DB tables, run:
CREATE TABLE
SOP_TEST(IDINTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,NAMETEXT NOT NULL UNIQUE,TYPETEXT,CREATEDTEXT,USERTEXT );
CREATE TABLE SOP_QUERY (
ID INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
QUERY_TEXT TEXT,
TEST_ID INTEGER,
POSITION INTEGER,
QUERY_TYPE INTEGER
);
10. to support image hashing, need to install ImageMagick and add it to PATH env var
http://www.imagemagick.org/script/binary-releases.php
add the root of the installation to PATH
- Download Logstash (current version is 1.4.2) and extract to a folder in ALM server
- Extract \agents\jetty\logging\log.conf to \logstash-1.4.2\bin
- enable Jetty logging: edit /DATA/ads_slave/deployments/8082/hp/mqm/server/conf/start.ini and enable the relevant logs: jetty.xml jetty-requestlog.xml jetty-deploy.xml jetty-rewrite.xml jetty-stats.xml jetty-logging.xml See \agents\jetty\server\conf\start.ini for an example.
- edit /DATA/ads_slave/deployments/8082/hp/mqm/server/conf/jetty-requestlog.xml after the line add the next line: dd/MMM/yyyy:HH:mm:ss.SSS See \agents\jetty\server\conf\jetty-requestlog.xml for an example.
- create folder /DATA/ads_slave/deployments/8082/hp/mqm/server/logs
- copy \agents\jetty\logging\sophia to /var/opt/logstash-1.4.2/patterns
- Restart Jetty 7.1 go to MQM install /DATA/ads_slave/deployments/8082/hp/mqm/wrapper 7.2 do ./HPALM restart (or stop and then start)
- running logstash in the background: cd /var/opt/logstash-1.4.2/bin ./logstash -f log.conf & to bring to foreground: fg to send to background: bg to check bg jobs: jobs -l to check if logstash is running: ps aux | grep logstash
- in MQM site admin configure to log everything
- Download Logstash (current version is 1.4.2) and extract to a folder in AppPulse server
- Extract \agents\app_pulse\log.conf to \logstash-1.4.2\bin
- copy \agents\jetty\logging\sophia to \logstash-1.4.2\patterns
- make sure the next log files exist: /opt/HP/diagApps/logs/ApmAppsAll.log, RUM-dal.log
- run logstash as described in B.7
Happy Coding! :p