2 Replies Latest reply on Jul 13, 2012 4:57 AM by maarten

    Restart workbench error


      I'm getting the following error in de dgraph log

      /12/12 13:36:48.912 UTC (1342100208912)     DGRAPH     {dgraph,baseline}     Rapid updates are not supported for datasets that do not have a record specification model specified in the record spec file.     

      My project in developer studio compiles and validates, forge runs fine (except that the stemming.xml does not get generated) and the dgidx proces runs fine as well. But when i try to restart the workbench with:
      eaccmd.sh ${HOST}:${PORT} start --app ${PRJ_NAME} --comp Dgraph_${HOST}

      i get the beforementioned error. My project is a copy of an existing project and the only thing i've done is remove some dimensions, properties, interfaces, etc...

      Any ideas?

        • 1. Re: Restart workbench error
          Craig Han-Oracle
          Hi Maarten,

          There are two ways of updating the Endeca MDEX. The first is a "Baseline Update", where the MDEX is re-created from scratch from the source data. The other method is known as a "Partial Update" (aka rapid update), where records in the MDEX can be added, removed or updated/replaced. The standard pipeline as and partial pipeline in the Developer Studio correspond to each one of these types of updates. In order to support "Partial Updates", you need to have a record spec defined. This is analogous to a primary key in a databases. To defined this, you will need to assign one of your properties to be a "Record Spec" and the value must be unique as no two records can possess the same primary key.

          Rapid updates is something that is optional and if you do not want to enable this, you can avoid defining a record spec but you will need to update the AppConfig.xml such that it disables rapid updates. In the dgraph-defaults section, you will find:

          <directory name="localIndexDir">./data/dgraphs/local_dgraph_input</directory>
          <!-- <directory name="localCumulativePartialsDir">./data/dgraphs/local_cumulative_partials</directory> -->
          <directory name="localDgraphConfigDir">./data/dgraphs/local_dgraph_config</directory>
          <directory name="localXQueryDir">./data/dgraphs/local_xquery</directory>

          Comment out the localCumulativePartialsDir. You will also need to update each individual Dgraph configuration and disable the update-dir:

          <dgraph id="Dgraph1" host-id="MDEXHost" port="15000">
          <property name="restartGroup" value="A" />
          <property name="updateGroup" value="a" />
          <!-- <update-dir>./data/dgraphs/Dgraph1/dgraph_input/updates</update-dir> -->

          Once these are commented out, the MDEX should start successfully despite the lack of a record spec, however, best practices recommends that a record spec be defined.


          • 2. Re: Restart workbench error
            Thanks, your answered triggered something. For the same project we have 2 partial pipelines, since i made a copy of the entire project i think i might have overlooked something on the partial side in the configuration.