«
»

Ingesting Data into Sierra

After signing up for a Sierra account, a few simple steps can be taken to push your data into Sierra and then analyze your data.

First, you’ll need to grab our sample code. You can find the instructions for downloading our sample code here.

Once you have downloaded the sample code, look for the Ingest.java class (in the src/java directory). This is a command line tool that can be run from your JAVA IDE or as a compiled java application.

A few assumptions:

1) Data files have already been converted to one of the following templates.

2) Ingest.java is dependent on the jar files in the lib directory and JAVA SDK version 1.6

Ingest.java reads files from your local filesystem and wraps the data into a Resource XML  format. It then makes a REST call via an HTTP POST to create resources.

Running this application requires a few command line arguments. The sierra host name, access key and secret code should have been created when you signed up for your Sierra account.

-shn ’sierrahostname’
-fp  ‘filepath’ (file path/directory e.g. “/Users/cpatel/saffronData/ukext”)
-tn  ‘templateName’ (template which is used to translate data e.g. “WS XML Raw”)
-sp ’spaceName’  (space where data is stored e.g. ‘default’)
-ak ‘accessKey’ (This is your accessKey for sierra service)
-sc ’secretCode’ (This is your secret for sierra service)

After the program has returned successfully. You can log into your SaffronAnalyst web application (http://your_saffron_sierra_hostname_here:8080/analyst) to view and analyst your data.

If for any reason you want to start over, you can exit the program and run the clear space command:

-cs ’spaceName’ (Clears/deletes existing data from the specified space in Sierra)

  • Print
  • Digg
  • del.icio.us
  • Facebook
  • Reddit
  • Twitter
  • DZone

Tags: , ,

This entry was posted on Monday, January 11th, 2010 at 2:33 pm and is filed under SaffronSierra. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

Leave a Reply