Apache Geode default file specification and search locations

       Each file has a default name, a set of file search locations, and a default system property that you can override.

 

       To use the default specification, put the file at the top level of its directory or jar file, the system property is the standard file specification, which has an absolute or relative pathname and filename.

Note: If you do not specify an absolute file path private path and name, search will check all search locations to find the file.

 

The default file specification is the relative file specification lookup location file specification available properties
gemfire.properties
  1. Current directory
  2. Main directory
  3. classpath
As a java system property, usegemfirePropertyFile
cache.xml
  1. Current directory
  2. classpath
In gemfire.properties中, use cache-xml-fileattribute

Invalid gemfirePropertyFilespecification example:

  • /zippy/users/jpearson/gemfiretest/gemfire.properties
  • c:\gemfiretest\gemfire.prp
  • myGF.properties
  • test1/gfprops

 

For test1/gfpropsspecification, if you /testDirrun , Geode looks for files in the following order until it either finds the file or searches all locations.

  1. /testDir/test1/gfprops
  2. <yourHomeDir>/test1/gfprops
  3. 在你类路径中的所有位置查找test1/gfprops

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=327058941&siteId=291194637