Make default configuration easier to run
authorPatrick Stuedi <pstuedi@apache.org>
Tue, 19 Jun 2018 13:21:07 +0000 (15:21 +0200)
committerPatrick Stuedi <pstuedi@apache.org>
Tue, 19 Jun 2018 13:21:07 +0000 (15:21 +0200)
commit84f608e542d6eed044bdf12ef45616ec645f7a4d
tree35beb3dca3d7993ca52ccf61088339b92ff0bf85
parent0db64fddad52044eab75ee73e1857c7bcf6fae7d
Make default configuration easier to run

Better default values for cachepath and tcp storage path. Throw an
exception if paths are invalid. Throw an exception if interface is
invalid. Trim down crail-site.conf.template to only include the
necessary parameters.

https://issues.apache.org/jira/browse/CRAIL-15

Signed-off-by: Patrick Stuedi <pstuedi@apache.org>
client/src/main/java/org/apache/crail/CrailStore.java
client/src/main/java/org/apache/crail/conf/CrailConstants.java
client/src/main/java/org/apache/crail/memory/MappedBufferCache.java
conf/core-site.xml.template
conf/crail-site.conf.template
storage-narpc/src/main/java/org/apache/crail/storage/tcp/TcpStorageConstants.java
storage-narpc/src/main/java/org/apache/crail/storage/tcp/TcpStorageServer.java
storage-rdma/src/main/java/org/apache/crail/storage/rdma/RdmaConstants.java