Commit a8837dd4 authored by Georgios Ouzounis's avatar Georgios Ouzounis
Browse files

Implemented export data faq on Central VM.

parent a8ac117f
......@@ -136,13 +136,13 @@
<div class="box-header with-border">
<h3 class="box-title">
<span class="label label-warning"><i class="fa fa-th"></i></span>
How to export your data</h3>
How to export my immutable data</h3>
</div><!-- /.box-header -->
<div class="box-body">
<div class="row">
<div class="col-md-12">
<!-- Conversations are loaded here -->
Follow the steps described in this section to export your data.
Follow the steps described in this section to export your immutable data.
</div><!--col-->
</div><!--row-->
<div class="row">
......
<section class="content">
<div class="row">
<div class="col-xs-12">
<div class="box box-primary">
<div class="box-header with-border">
<h3 class="box-title">How to export my immutable data</h3>
<div class="box-tools pull-right">
<button class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i></button>
<button class="btn btn-box-tool" data-widget="remove"><i class="fa fa-times"></i></button>
</div>
</div><!-- /.box-header -->
<div class="box-body no-padding">
<div class="row">
<div class="col-md-12">
<div class="pad"> Follow the steps described in this section to export your immutable data.
</div>
</div><!-- /.col -->
</div><!-- /.row -->
</div><!-- /.box-body -->
</div><!--box box-primary-->
</div><!--col-xs-12-->
</div><!--row -->
<div class="row">
<div class="col-xs-12">
<!-- DIRECT CHAT DANGER -->
<div class="box box-success ">
<div class="box-header with-border">
<h3 class="box-title">Short guide on how to export the immutable data from a Lambda Instance</h3>
</div><!-- /.box-header -->
<div class="box-body">
<div class="row">
<div class="col-md-12">
<h1>Export Immutable Data</h1>
<p>
<!-- TODO Explain with pictures where to find the hostname of the Master Node -->
The immutable data of each Lambda Instance, are saved on its <a href="https://hadoop.apache.org">Hadoop Distributed File System(HDFS)</a>.
In order to export them, you will have to connect over ssh on the Master Node of your Lambda Instance and create a snapshot of the HDFS. After
that, you can move the snapshot on the file system of your VM and then, secure copy it on your local machine, upload it on the cloud etc...
</p>
<p>
The step-by-step directives your should execute are the following:
<ol>
<li>
Connect over ssh on the Master Node of your Lambda Instance:
<pre>
ssh -l root snf-XXXXXX.vm.okeanos.grnet.gr
</pre>
where, XXXXXX should be replaced with the id of the VM(e.g. snf-543786.vm.okeanos.grnet.gr)
</li><br>
<li>
Allow snapshots for the root directory of the HDFS:
<pre>
/usr/local/hadoop/bin/hdfs dfsadmin -allowSnapshot /
</pre>
Note that you can choose to snapshot any other directory, not only the root. To do that, supplement the "/" symbol of the directive with the
path of the directory you want to allow snapshots. For example, if you choose the directory "/flume/input", you should execute the directive:<br>
<pre>
/usr/local/hadoop/bin/hdfs dfsadmin -allowSnapshot /flume/input
</pre>
</li><br>
<li>
Create the SnapShot:
<pre>
/usr/local/hadoop/bin/hdfs dfs -createSnapshot / s0
</pre>
As stated on the previous step, you can choose to SnapShot a different directory. The full path of the directory you choose, should replace the "/"
argument of the directive. This command will create a directory "/.snapshot/s0". Note that, "s0" is the name of the directory that is created.
You can replace this on the directive with any name of your choice.
</li><br>
<li>
Copy the SnapShot from HDFS to VM file system:
<pre>
/usr/local/hadoop/bin/hdfs dfs -get /.snapshot/s0
</pre>
</li><br>
<li>
Copy the snapshot on the local file system of your Laptop:
<pre>
scp -r root@snf-XXXXXX.vm.okeanos.grnet.gr:/root/s0 .
</pre>
In the above directive, you should again replace the XXXXXX with the id of your VM. Also, the path "/root/s0" indicates the place of the SnapShot directory on the
VM and "." indicates the place where the SnapShot will be copied on your Laptop. You can change these paths to fit your needs.
</li>
</ol>
</p>
</div><!--col-->
</div><!--row-->
</div><!--class="box-body"-->
</div> <!--box-->
</div><!--col-md-3 -->
</div> <!--row-->
</section><!-- /.content -->
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment