-
Notifications
You must be signed in to change notification settings - Fork 24
/
install_hadatac.bat
60 lines (45 loc) · 2.17 KB
/
install_hadatac.bat
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
cls
ECHO OFF
ECHO === Welcome to HADataC - The Human-Aware Data Acquisition Framework ===
ECHO
ECHO The following wizard will guide you into deploying a working
ECHO instance of HADataC on your machine. Please refer to
ECHO https://github.com/paulopinheiro1234/hadatac/wiki if you have any
ECHO questions about this installation.
ECHO
ECHO ATTENTION:
ECHO 1) This script downloads and install Apache Solr. This takes around
ECHO 300Mbytes of data. Make sure you have a decent connection and
ECHO this data availability.
ECHO
set /p response= "Proceed with installation? [y/N]"
IF %response% == N EXIT
IF %response% == n EXIT
SET HADATAC_HOME=c:\hadatac
set /p resp2= "Directory of installation [c:\hadatac]: "
IF "%resp2%" NEQ "" (SET HADATAC_HOME=%resp2%)
ECHO %HADATAC_HOME%
SET HADATAC_DOWNLOAD=%HADATAC_HOME%\download
SET HADATAC_SOLR=%HADATAC_HOME%\solr
SET SOLR5_HOME=%HADATAC_SOLR%\solr-8.6.1
mkdir %HADATAC_HOME%
mkdir %HADATAC_DOWNLOAD%
mkdir %HADATAC_SOLR%
MKDIR %HADATAC_DOWNLOAD%\jts-1.15
cp -R solr/ %HADATAC_SOLR%
ECHO === Downloading Apache Solr 8.6.1...
wget -O %HADATAC_DOWNLOAD%\solr-8.6.1.zip http://archive.apache.org/dist/lucene/solr/8.6.1/solr-8.6.1.zip
wget -O %HADATAC_DOWNLOAD%\solr-8.6.1.zip.md5 http://archive.apache.org/dist/lucene/solr/8.6.1/solr-8.6.1.zip.md5
ECHO === Downloading JTS Topology Suite 1.15...
wget -O %HADATAC_DOWNLOAD%\jts-1.15.zip http://pilotfiber.dl.sourceforge.net/project/jts-topo-suite/jts/1.15/jts-1.15.zip
ECHO === Uncompressing Apache Solr 8.6.1...
winrar x %HADATAC_DOWNLOAD%\solr-8.6.1.zip *.* %HADATAC_SOLR%
ECHO === Uncompressing JTS Topology Suite 1.15...
winrar x %HADATAC_DOWNLOAD%\jts-1.15.zip *.* %HADATAC_DOWNLOAD%\jts-1.15
ECHO "HADATAC_SOLR=%HADATAC_SOLR%" >> %HADATAC_SOLR%\hadatac_solr.bat
copy /b %HADATAC_SOLR%\hadatac_solr.bat+%HADATAC_SOLR%\solr8.in.bat %HADATAC_SOLR%\solr8.in.bat
ECHO "HADATAC_SOLR=%HADATAC_SOLR%" >> %HADATAC_SOLR%\hadatac_solr.bat
copy /b %HADATAC_SOLR%\hadatac_solr.bat+%HADATAC_SOLR%\solr8.in.bat %HADATAC_SOLR%\solr8.in.bat
%HADATAC_SOLR%\run_solr8.bat stop
%HADATAC_SOLR%\run_solr8.bat start
copy $HADATAC_DOWNLOAD\jts-1.15\lib\* $HADATAC_SOLR\solr-8.6.1\server\solr-webapp\webapp\WEB-INF\lib\