-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME.txt
More file actions
84 lines (63 loc) · 2.61 KB
/
Copy pathREADME.txt
File metadata and controls
84 lines (63 loc) · 2.61 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
This README describes how to use RecommendationServlet.
Dependencies
------------
* HBaase Libraries:
* commons-codec-1.7
* commons-configuration-1.6
* commons-lang-2.6
* commons-logging-1.1.1
* guava-12.0.1
* hadoop-annotations-2.2.0
* hadoop-auth-2.2.0
* hadoop-common-2.2.0
* hbase-client-0.98.0-hadoop2
* hbase-common-0.98.0-hadoop2
* hbase-protocol-0.98.0-hadoop2
* htrace-core-2.04
* jackson-core-asl-1.8.8
* jackson-mapper-asl-1.8.8
* log4j-1.2.17
* netty-3.6.6.Final
* phoenix-4.6.0-HBase-0.98-client - should be removed if server is well configured
* protofub-java-2.5.0
* slf4j-api-1.6.4
* zookeeper-3.4.5
* MyMediaLiteJava Library:
* mymedialite
* Custom Library:
* CommonTools
Description
-----------
* Hbase Libraries can be found on server, HBase installation lib folder.
* Phoenix just should be recognized by itself, when Phoenix is properly installed on server.
* For recommendations is used MyMediaLite Java port version 2.03. https://github.com/jcnewell/MyMediaLiteJava
* CommonTools contains packages to work with Algorithms, Database and Books.
Servlet deployment
------------------
* Servlet .war file must be deployed on tomcat server.
For example, from tomcat manager (http://tomcatUrl/manager) in "WAR file to deploy" section, click Browse,
choose Servlet .war file from computer and press Deploy.
Connect to Servlet using link: http://tomcatUrl:port/RecommendationServlet/RecommendationServlet
Using SQL scripts
-----------------
* Everything works with HBase database, so add tables first.
execute SQL scripts from sql_scripts.txt one by one.
* We are now using Apache Phoenix, so connect to it first.
* GOTO: /home/edgaras/phoenix
then connect to Putty and in command line type:
bin/sqlline.py master.pc:2181:/hbase-unsecure
* Now you'll be able to work with Apache Phoenix.
Build
-----
Project build on:
* IntelliJ IDEA 14.1.5
* JDK 1.7
How to build .war file is described here: https://www.jetbrains.com/idea/help/configuring-web-application-deployment.html
* Build a WAR file from a module
1. On the main menu, choose Build | Build Artifact.
2. From the drop-down list, select the desired artifact of the type WAR.
** Build | Build Artifact
READ: https://www.jetbrains.com/idea/help/packaging-a-module-into-a-jar-file.html
Contacts
--------
* Author: Edgars Fjodorovs