User Tools

Site Tools


agent_no_relative_directories

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
agent_no_relative_directories [2019/03/14 23:11]
timothy.pike [Specify Working Directories for Agent Files]
agent_no_relative_directories [2019/06/27 14:22] (current)
robert.fan [Specify Working Directories for Agent Files]
Line 3: Line 3:
 <wrap round info>​[[https://​doc.perspectium.com/​display/​fluorine/​Fluorine+Release|Fluorine]]</​wrap>​ <wrap round info>​[[https://​doc.perspectium.com/​display/​fluorine/​Fluorine+Release|Fluorine]]</​wrap>​
  
-By default the **conf**, **bin**, and **perspectium_data** ​directories ​will be saved in the parent Replicator Agent directory. However, you can make some manual changes to agent configuration files to specify different working ​directories ​for these directories. ​+By default the **agent.xml** file, **log4j2.xml** file, and **perspectium_data** ​directory ​will be saved in the parent Replicator Agent directory. However, you can make some manual changes to agent configuration files to specify ​different ​"working ​directory" ​for these files/directories. ​
  
-__**NOTE**__**:​** You will still need to keep a **conf** directory in the parent directory for the Replicator Agent. However, the new working directory that you specify ​will also contain a **conf** directory and **log** directory with the **agent.xml** and **log4j2.xml** files in each respective directory.+__**NOTE**__**:​** You will still need to keep a **conf** directory in the parent directory for the Replicator Agent. However, the new working directory that you specify ​should ​also contain a **conf** directory and **log** directory with the **agent.xml** and **log4j2.xml** files in each respective ​directory. The **perspectium_data** directory will be in the first level of the working ​directory.
  
 =====Specifying Working Directories for the Agent in Windows===== =====Specifying Working Directories for the Agent in Windows=====
Line 15: Line 15:
 \\ \\
 \\ \\
-**2.** Open the **agent.bat** file in your preferred text editing application and locate the following line in the file: SET JAVA_ARGS=-Xmx%2 -Dfile.encoding=UTF-8 -Dlog4j.configurationFile="​%~dp0..\conf\log4j2.xml"​ -Dcom.perspectium.working.directory="​full path to new working directory" -classpath "​%~dp0..\jars*";"​%~dp0..\extlib*"​ com.perspectium.replicator.Replicator+**2.** Open the **agent.bat** file in your preferred text editing application and locate the following line in the file: SET JAVA_ARGS=-Xmx%2 -Dfile.encoding=UTF-8 -Dlog4j.configurationFile="​%~dp0..\conf\log4j2.xml"​ -Dcom.perspectium.working.directory="​**DIRECTORY_PATH**" -classpath "​%~dp0..\jars*";"​%~dp0..\extlib*"​ com.perspectium.replicator.Replicator
 \\ \\
 \\ \\
 Replace this line with: Replace this line with:
-SET JAVA_ARGS=-Xmx%2 -Dfile.encoding=UTF-8 -Dlog4j.configurationFile="​full path to new working directory\conf\log4j2.xml"​ -Dcom.perspectium.working.directory="​**DIRECTORY_PATH**"​ -classpath "​%~dp0..\jars*";"​%~dp0..\extlib*"​ com.perspectium.replicator.Replicator+SET JAVA_ARGS=-Xmx%2 -Dfile.encoding=UTF-8 -Dlog4j.configurationFile="​**DIRECTORY_PATH**\conf\log4j2.xml"​ -Dcom.perspectium.working.directory="​**DIRECTORY_PATH**"​ -classpath "​%~dp0..\jars*";"​%~dp0..\extlib*"​ com.perspectium.replicator.Replicator
 \\ \\
 \\ \\
Line 26: Line 26:
 \\ \\
 **3.** Also within the **agent.bat** file, locate this line: **3.** Also within the **agent.bat** file, locate this line:
-SET JAVA_ARGS=-Dfile.encoding=UTF-8 -Dlog4j.configurationFile="​%~dp0..\conf\log4j2.xml"​ -Dcom.perspectium.working.directory="​full path to new working directory" -classpath "​%~dp0..\jars*";"​%~dp0..\extlib*"​ com.perspectium.replicator.Replicator+SET JAVA_ARGS=-Dfile.encoding=UTF-8 -Dlog4j.configurationFile="​%~dp0..\conf\log4j2.xml"​ -Dcom.perspectium.working.directory="​**DIRECTORY_PATH**" -classpath "​%~dp0..\jars*";"​%~dp0..\extlib*"​ com.perspectium.replicator.Replicator
 \\ \\
 \\ \\
 Replace this line with:  Replace this line with: 
-SET JAVA_ARGS=-Dfile.encoding=UTF-8 -Dlog4j.configurationFile="​**DIRECTORY_PATH**\conf\log4j2.xml"​ -Dcom.perspectium.working.directory="​full path to new working directory" -classpath "​%~dp0..\jars*";"​%~dp0..\extlib*"​ com.perspectium.replicator.Replicator+SET JAVA_ARGS=-Dfile.encoding=UTF-8 -Dlog4j.configurationFile="​**DIRECTORY_PATH**\conf\log4j2.xml"​ -Dcom.perspectium.working.directory="​**DIRECTORY_PATH**" -classpath "​%~dp0..\jars*";"​%~dp0..\extlib*"​ com.perspectium.replicator.Replicator
 \\ \\
 \\ \\
Line 39: Line 39:
 =====Specifying Working Directories for the Agent in Linux===== =====Specifying Working Directories for the Agent in Linux=====
  
-To specify ​working directories for the **conf**, **bin**, and **perspectium_data** folders ​for the Replicator Agent in Linux, follow these steps:+To specify the working directory ​for the Replicator Agent in Linux, follow these steps:
 \\ \\
 \\ \\
agent_no_relative_directories.1552630309.txt.gz ยท Last modified: 2019/03/14 23:11 by timothy.pike