Apache Jackrabbit - Où sont mes fichiers?
-
13-11-2019 - |
Question
Je suis nouveau à Jackrabbit et j'utilise Sling pour accéder au référentiel via son interface de repos.J'ai trouvé comment ajouter et accéder à divers fichiers au référentiel, mais ma question est, où est Jackrabbit stockant physiquement ces fichiers?
Voici mon configuration de référentiel Jackrabbit:
<?xml version="1.0" encoding="ISO-8859-1"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<!DOCTYPE Repository
PUBLIC "-//The Apache Software Foundation//DTD Jackrabbit 2.0//EN"
"http://jackrabbit.apache.org/dtd/repository-2.0.dtd">
<Repository>
<FileSystem class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">
<param name="path" value="/sling-repository/repository"/>
</FileSystem>
<DataStore class="org.apache.jackrabbit.core.data.FileDataStore"/>
<Security appName="Jackrabbit">
<SecurityManager class="org.apache.jackrabbit.core.DefaultSecurityManager" workspaceName="security">
</SecurityManager>
<AccessManager class="org.apache.sling.jcr.jackrabbit.server.impl.security.PluggableDefaultAccessManager">
</AccessManager>
<LoginModule class="org.apache.sling.jcr.jackrabbit.server.impl.security.PluggableDefaultLoginModule">
<param name="anonymousId" value="anonymous"/>
<param name="adminId" value="admin"/>
</LoginModule>
</Security>
<Workspaces rootPath="/sling-repository/workspaces" defaultWorkspace="default"/>
<Workspace name="${wsp.name}">
<FileSystem class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">
<param name="path" value="${wsp.home}"/>
</FileSystem>
<PersistenceManager class="org.apache.jackrabbit.core.persistence.pool.MySqlPersistenceManager">
<param name="url" value="jdbc/sling"/>
<param name="driver" value="javax.naming.InitialContext"/>
<param name="schemaObjectPrefix" value="${wsp.name}_"/>
</PersistenceManager>
<SearchIndex class="org.apache.jackrabbit.core.query.lucene.SearchIndex">
<param name="path" value="${wsp.home}/index"/>
<param name="supportHighlighting" value="true"/>
</SearchIndex>
</Workspace>
<Versioning rootPath="/sling-repository/version">
<FileSystem class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">
<param name="path" value="/sling-repository/version" />
</FileSystem>
<PersistenceManager class="org.apache.jackrabbit.core.persistence.pool.MySqlPersistenceManager">
<param name="url" value="jdbc/sling"/>
<param name="driver" value="javax.naming.InitialContext"/>
<param name="schemaObjectPrefix" value="version_"/>
</PersistenceManager>
</Versioning>
<SearchIndex class="org.apache.jackrabbit.core.query.lucene.SearchIndex">
<param name="path" value="/sling-repository/repository/index"/>
<param name="supportHighlighting" value="true"/>
</SearchIndex>
</Repository>
J'ai l'impression que ces fichiers doivent être stockés quelque part sur le système de fichiers, car ils sont plus grands que 100 octets (ce qui semble être la limite de taille par défaut comme décrit dans Documentation de Datastore de Jackrabbit ).Alors, où sont-ils?Je ne sais pas où regarder.
La solution
les a trouvés!Puisque je n'avais pas remplacé le paramètre de chemin dans la définition de magasin de données comme ceci:
<DataStore class="org.apache.jackrabbit.core.data.FileDataStore">
<param name="path" value="/sling-repository/repositorydatastore"/>
</DataStore>
Sling placait les fichiers dans le ${rep.home}/repository/datastore
de DOH de défaut!
Autres conseils
Voir aussi http://wiki.apache.org/jackrabbit/dataStore pour le magasin de donnéesDocs