Yes, you mentioned the AWS bundle in your first reply and I forgot to include that. The bundle is aws-java-sdk-osgi: https://search.maven.org/search?q=g:com.amazonaws%20AND%20a:aws-java-sdk-osgi&core=gav
On Tuesday, August 6, 2019, 1:58:11 AM PDT, Robert Munteanu <romb...@apache.org> wrote: On Mon, 2019-08-05 at 17:35 +0000, J Logan wrote: > Hi Saurabh, > This might help you get started when working with the Sling starter > JAR. Robert, it'd be great if you could sanity check this but I > think this is more or less correct. Hi John, Yes, that looks correct to me. A couple of notes: a) You could add the required bundles and configs to the provisioning model files ( src/main/resources/oak.txt ) directly. b) Besides the oak-blob-cloud bundle you probably also need some dependenies like the AWS SDK. Thanks, Robert > > 1.) Start up the JAR once to get your repository initialized. Go to > the OSGi bundle console and make note of two things:a.) Whether the > "org.apache.jackrabbit:oak-blob-cloud" OSGi bundle is presentb.) The > version of Oak that is deployed > 2.) Stop Sling. This might not be strictly necessary, but it can't > hurt to do this while you're getting started. > > 3.) If the oak-blob-cloud isn't present in your bundle config, you > need to download the "org.apache.jackrabbit:oak-blob- > cloud:{oak_version}" JAR and copy it into your deployment. The > "oak_version" value should match the Oak version you saw above. > 4.) Add a configuration file > "org.apache.jackrabbit.oak.segment.SegmentNodeStoreService.config" > that defines > customBlobStore=B"true" > 5.) Add a configuration file "" that defines > accessKey="your_s3_access_key" > secretKey="your_s3_secret_key" > s3Bucket="your_s3_bucket" > s3Region="your_s3_region" > s3EndPoint="your_s3_endpoint" > connectionTimeout="120000" > socketTimeout="120000" > maxConnections="40" > writeThreads="30" > maxErrorRetry="10" > > If you're using and EC2 instance for Sling, you can use instance > profiles to define an access role, and you can leave accessKey and > secretKey blank. > > 5.) Restart Sling. At this point your setup should be working, or > close to working. Check the Sling logs and S3 console to > troubleshoot any issues. > Google "Configuring node stores and data stores in AEM 6" for more > info on configuration. > Regards, John > > > On Monday, August 5, 2019, 5:44:17 AM PDT, Robert Munteanu < > romb...@apache.org> wrote: > > Hi Saurabh, > > On Tue, 2019-07-30 at 11:48 +0530, Saurabh Tiwari wrote: > > Hello team, > > > > Hope you are doing well. > > > > Just to give you my background, I am beginner in Sling, Felix and > > Jackrabbit technologies and in the process of exploring it. > > Welcome :-) > > > I am planning to use S3 bucket for storage in Sling. > > As per my knowledge, the NoSQL storage under the sling is Apache > > Jackrabbit > > Oak, and Oak supports larger assets storage in S3. > > > > I found these document on Jackrabbit [1], but unable to get it > > (may > > be due > > to my limited knowledge of OSGi) > > > > Kindly help me with the steps to be followed to use S3 bucket with > > sling > > and please let me know if I misunderstood anything. > > > > [1] > > https://jackrabbit.apache.org/oak/docs/osgi_config.html#config-sling > > We do not have an explicit configuration set for Amazon S3 support in > the Sling starter. > > I think that you would need at least: > > - to deploy the AWS SDK Jar > - to add a configuration that enables the use of the > org.apache.jackrabbit.oak.plugins.blob.datastore.S3DataStore > component > > What have you tried so far? > > Thanks, > > Robert > >