Date: Thu, 28 Mar 2024 15:01:26 -0400 (EDT) Message-ID: <208826479.792.1711652486998@prodopencatalystconfluence.catalyst> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_791_466280012.1711652486994" ------=_Part_791_466280012.1711652486994 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
The following assumes that you are in the SSH terminal connected to your EC2 instance= .
Go to the tomcat directory
cd /opt/apache-tomcat-7.0.39/
Stop tomcat using the shutdown wrapper script
sudo -su tomcat bin/shutdownwrapper.sh
=
Verify tomcat has been shutdown
ps aux | grep tomcat
[root@ip-172-31-54= -208 log]# cd /opt/apache-tomcat-7.0.39/ [root@ip-172-31-54-208 apache-tomcat-7.0.39]# sudo -su tomcat bin/shutdown.= sh Using CATALINA_BASE: /opt/apache-tomcat-7.0.39 Using CATALINA_HOME: /opt/apache-tomcat-7.0.39 Using CATALINA_TMPDIR: /opt/apache-tomcat-7.0.39/temp Using JRE_HOME: /opt/jdk1.8.0_66 Using CLASSPATH: /opt/apache-tomcat-7.0.39/bin/bootstrap.jar:/opt/apa= che-tomcat-7.0.39/bin/tomcat-juli.jar [root@ip-172-31-54-208 apache-tomcat-7.0.39]# ps aux | grep tomcat root 1646 0.0 0.0 103312 876 pts/0 S+ 13:02 0:00 grep tomca= t #### The following means that tomcat is still running #### tomcat 1674 93.2 11.4 3599164 116800 pts/0 Sl 13:08 0:03 /opt/jdk1.= 8.0_66/bin/java -Djava.util.logging.config.file=3D/opt/apache-tomcat-7.0.39= /conf/logging.properties=20 -Djava.util.logging.manager=3Dorg.apache.juli.ClassLoaderLogManager -Xmx153= 6m -XX:+PrintGCDetails=20 -Xloggc:/opt/apache-tomcat-7.0.39/logs/tomcat-gc.log -Djava.endorsed.dirs= =3D/opt/apache-tomcat-7.0.39/endorsed=20 -classpath /opt/apache-tomcat-7.0.39/bin/bootstrap.jar:/opt/apache-tomcat-7= .0.39/bin/tomcat-juli.jar=20 -Dcatalina.base=3D/opt/apache-tomcat-7.0.39 -Dcatalina.home=3D/opt/apache-t= omcat-7.0.39=20 -Djava.io.tmpdir=3D/opt/apache-tomcat-7.0.39/temp org.apache.catalina.start= up.Bootstrap start
configuration.properties for the public sparql endpoint
cd ${SPARQLER_HOME}
configuration.properties
file in a text edi=
tor of your choice=20
vim configuration.properties
eaglei.repository.namespace
eaglei.repository.title
eaglei.repository.logo
Save the changes.
[root@ip-172-31-54= -208 ~]# cd ${SPARQLER_HOME} [root@ip-172-31-54-208 sparqler]# vim configuration.properties ##### configuration.properties file #### eaglei.repository.namespace =3D http://ec2-54-175-59-6.compute-1.amazonaws.= com/i/ eaglei.repository.title =3D AMI Test Repository eaglei.repository.logo =3D https://alaska.qa.eagle-i.net:8443/sweet/images/= eaglei-medium-blue.png
cd ${REPO_HOME}
SPARQLADMINUSER
and =
SPARQLADMINPW
with the credentials for the public spar=
qler repository administrator.=20
bash etc/prepare-install.sh SPARQLADMINUSER SPARQLAD=
MINPW ${REPO_HOME} sparqler-users.derby
Modify the ownership of the derby database to be owned by the tomcat= user
chown -R tomcat:tomcat db/
[root@ip-172-31-54= -208 sparqler]# cd ${REPO_HOME} [root@ip-172-31-54-208 repo]# bash etc/prepare-install.sh sparqler-user spa= rqler-pw ${REPO_HOME} sparqler-users.derby _RUNJAVA set to "/opt/jdk1.8.0_66/jre/bin/java" java version "1.8.0_66" Java(TM) SE Runtime Environment (build 1.8.0_66-b17) Java HotSpot(TM) 64-Bit Server VM (build 25.66-b17, mixed mode) ---all superuser logins--- sparqler-user [root@ip-172-31-54-208 repo]# chown -R tomcat:tomcat db/
cd /opt/eaglei/conf/
eagle=
-i-apps.properties
file=20
im eagle-i-apps.properties
eagle-i-apps=
.properties
file to define the source and target repos=
itory for the public sparql endpoint:eaglei.sparqler.source.URL
, this will be =
your main repository URLeaglei.sparqler.target.URL
, this will be =
the URL of your public sparql endpoint. Typically it is a concatenation of =
the main repository URL with 'sparqler'eagle=
-i-apps-credentials.properties
file.eagle-i-apps-credentials.properties=
file.=20
eaglei.sparqler.target.user
eaglei.sparqler.target.password
Save your changes
[root@ip-172-31-54= -208 sparqler]# cd /opt/eaglei/conf/ [root@ip-172-31-54-208 conf]# vim eagle-i-apps.properties ##### eagle-i-apps.properties file ##### ## SPARQLER ### URL of source-repository (from which the sparqler reads public informat= ion): eaglei.sparqler.source.URL =3D https://ec2-54-175-59-6.compute-1.amazonaws.= com/ ### URL of target (i.e., sparqler) repository: eaglei.sparqler.target.URL =3D https://ec2-54-175-59-6.compute-1.amazonaws.= com/sparqler/ ######################################## [root@ip-172-31-54-208 conf]# vim eagle-i-apps-credentials.properties ##### eagle-i-apps-credentials.properties file ##### eaglei.sparqler.target.user=3Dsparqler-user eaglei.sparqler.target.password=3Dsparqler-password ####################################################
Go to the tomcat directory
cd /opt/apache-tomcat-7.0.39/
Start tomcat using the startup wrapper script
sudo -su tomcat bin/startupwrapper.sh
<=
/p>
Wait for tomcat to finish startup.
[root@ip-172-31-54= -208 opt]# cd apache-tomcat-7.0.39/ [root@ip-172-31-54-208 apache-tomcat-7.0.39]# sudo -su tomcat bash bin/star= tupwrapper.sh Waiting for Tomcat to startup ... Tomcat startup finished in ~115 seconds
cd ${REPO_HOME}
SPARQLADMINUSER
and S=
PARQLADMINPW
with the credentials for the public sparq=
ler repository administrator.=20
bash etc/finish-install.sh SPARQLADMIN=
USER
SPARQLADMINPW
=
sparqler-repository-url-prefix
[root@ip-172-31-54= -208 sparqler]# cd ${REPO_HOME} [root@ip-172-31-54-208 repo]# bash etc/finish-install.sh sparqler-user spar= qler-pw https://ec2-54-175-59-6.compute-1.amazonaws.com/sparqler User metadata created. Updating data model ontology from jar, please wait... Updated data model ontology from jar
In a browser, navigate to the public sparql endpoint admin console and l= og in using the public sparqler repository administrator credentials.