Skip to content

Instantly share code, notes, and snippets.

@trekawek
Created July 27, 2016 10:31
Show Gist options
  • Save trekawek/cc40d91254fcd1447bbf36c29ae49957 to your computer and use it in GitHub Desktop.
Save trekawek/cc40d91254fcd1447bbf36c29ae49957 to your computer and use it in GitHub Desktop.
LengthCachingDataStore configuration
4432|dd10bca036f3134352c63e534d4568a3d2ac2fdc
32167|dd10bca036f3134567c63e534d4568a3d2ac2fdc
s3cmd ls s3://bucket-name \
| awk '{ split($4,url,"/"); print $3"|"url[4] }' \
| sed -e 's/\-//g' > datastore-list.txt
<!-- replace the current datastore configuration with: -->
<DataStore class="org.apache.jackrabbit.oak.upgrade.blob.LengthCachingDataStore">
<param name="mappingFilePath" value="/path/to/datastore-list.txt" />
<param name="delegateClass" value="org.apache.jackrabbit.aws.ext.ds.S3DataStore" />
<param name="delegateConfigFilePath" value="/path/to/s3datastore.properties"/>
</DataStore>
proactiveCaching=false
recLengthCacheSize=10000
config=/path/to/crx-quickstart/repository/aws.properties
secret=boom
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment