Hi Mike,

On Tue, 2016-09-06 at 19:26 -0500, Mike Nimer wrote:
> If I want to use the FileDataStore for blobs, with the
> SegmentNodeStore.  What dependencies do I need to add to my
> provisioning txt files, for launched 9-SNAPSHOT?
> 
> Config:
> ================
> [configurations runModes=oak_tar]
>   org.apache.jackrabbit.oak.plugins.segment.SegmentNodeStoreService
>     name="Default\ NodeStore"
>     customBlobStore="true"
> 
>   org.apache.jackrabbit.core.data.FileDataStore
>     minRecordLength="1024"
>     cacheSize="10000000"
>     path="sling/files"
> ===================
> 
> I thought this would do it:
> org.apache.sling/org.apache.sling.installer.core/3.6.8
> 
> 
> When I set CustomBlogStore="true" the server starts up without any
> errors but I can not load the home page or /system/console app.  And
> I
> noticed that under the sling home folder I don't have the
> /repository/segmentstore folder or a /sling/files folder.

The following minimal changes worked for me

diff --git a/launchpad/builder/src/main/provisioning/oak.txt
b/launchpad/builder/src/main/provisioning/oak.txt
index 0d0d96b..49fde19 100644
--- a/launchpad/builder/src/main/provisioning/oak.txt
+++ b/launchpad/builder/src/main/provisioning/oak.txt
@@ -83,6 +83,10 @@
 [configurations runModes=oak_tar]
   org.apache.jackrabbit.oak.plugins.segment.SegmentNodeStoreService
     name="Default\ NodeStore"
+    customBlobStore=B"true"
+
+  org.apache.jackrabbit.oak.plugins.blob.datastore.FileDataStore
+    minRecordLength=I"4096"
 
 [configurations runModes=oak_mongo]
   org.apache.jackrabbit.oak.plugins.document.DocumentNodeStoreService

The main difference is that you would need to indicate the type of the
configuration property - so I for numeric and B for boolean.

After making this change and building a new launchpad the FDS writes
the blobs under sling/repository/repository/datastore. By adding the
'path' configuration option you should be able to control its location.

HTH and sorry for the late reply :-)

Robert

Reply via email to