Copying data to MapR-FS

Extract the Kognitio retail demo data and transfer it into MapR-FS

1. Download and extract the Kognitio retail demo data.

Download and extract the Kognitio retail demo data tarball

wget http://www.kognitio.com/downloads/kog-retail-demo-bundle.tar
tar -xf kog-retail-demo-bundle.tar

2. Create directories in MapR-FS.

Create the directories that you’ll need in MapR-FS. You’ve already started this process. When you installed Kognitio on MapR you created a MapR-FS volume call “kogvol01”. This can also be used to hold the retail demo data. Create a directory structure below to hold the retail demo data.

hadoop fs -mkdir /kogvol01/demos
hadoop fs -mkdir /kogvol01/demos/retail
hadoop fs -mkdir /kogvol01/demos/retail/eposdata
hadoop fs -mkdir /kogvol01/demos/retail/dimdata

3. Transfer the data into MapR-FS.

hadoop fs -put retail/eposdata/*.csv.gz /kogvol01/demos/retail/eposdata
hadoop fs -put retail/dimdata/*.csv.gz  /kogvol01/demos/retail/dimdata

You can then check that the files are on MapR-FS:

hadoop fs -ls /kogvol01/demos/retail/eposdata
hadoop fs -ls /kogvol01/demos/retail/dimdata

Next: Creating a user and schema