This Season
 

How to Add a Shard to the Index in Katta

It's easy to forget that there's a physical component to the vast quantities of digital data that are transferred and stored in homes, offices, government institutions and other places. Katta is a data storage client designed to handle large data sets, which it breaks up into indices, which themselves are further divided into "shards." In order to keep the database updated and running smoothly, system administrators may need to add shards to a Katta index.

Related Searches:
    Difficulty:
    Moderate

    Instructions

      • 1

        Open the code editor.

      • 2

        Input "sh bin/katta addIndex testIndex src/test/testIndexA 2" into Window 2 and type "sh bin/katta search testIndex foo:bar 4" in Window 3.

      • 3

        Open the Hadoop cluster in your Katta node grid.

      • 4

        Input the following code: "export HADOOP_HOME=~/katta-tutorial/<hadoop dir>
        export PATH=$HADOOP_HOME/bin:$PATH
        export JAVA_HOME=<path to java home>"

      • 5

        Create a new key for the shard by inputting in the code field "> ssh-keygen -t dsa -P '' -f ~/.ssh/id_dsa
        > cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys"

      • 6

        Type "goto katta distribution" and hit enter. Select the shards you want to merge into the index.

      • 7

        Input the deploy command, which is coded as follows: "bin/katta addIndex testIndex hdfs://localhost:9000/index org.apache.lucene.analysis.StandardAnalyzer 2"

    Related Searches

    References

    Read Next:

    Comments

    Follow eHow

    Related Ads