The SAP HANA Academy’s Tahir Hussain Babar (Bob) walks through how to upgrade a SAP HANA Vora system in a series of three videos.


All of the scripts Bob uses through out this tutorial series are available here on GitHub.


Testing the Existing System and Deleting the Zookeeper Cache

Screen Shot 2015-10-22 at 10.54.45 AM.png

During the first video Bob shows how to test the existing SAP HANA Vora system. Bob then goes on to detail how to delete the Zookeeper client cache to ensure that any tables that were previously created are deleted.


Bob has built a SAP HANA Vora installation on top of Hadoop which he created with Ambari. To test his SAP HANA Vora installation Bob opens PuTTY for his Vora instance and logs in as the HDFS user and confirms that a file called test.cvs he previously loaded in the single node SAP HANA Vora install series is still there. Bob then logs in as the Vora user and notes the files that will need to be replaced during the upgrade.

Screen Shot 2015-10-23 at 9.45.18 AM.png

Bob then starts Spark Shell to test the Vora add-ons to Apache Spark. First, Bob imports the SapSQLContext and then runs a script to create a table in SAP HANA Vora that points to the path of the test.csv file in HDFS. If you’re able to run a select * statement to show the table’s data then your SAP HANA Vora system is working.


When you create a table in SAP HANA Vora using the Spark Shell the tables don’t exist. Going back into a restarted Spark Shell Bob doesn’t see the table he just created. Spark Shell only creates temporary tables but the metadata of the process is kept in Zookeeper. Therefore, before upgrading SAP HANA Vora you should empty your Zookeeper client.


To accomplish this import another context called .com.sap.spark.velocity.client. This context’s name may change depending on which version of Vora you’re upgrading from. Then Bob runs the command pictured below and includes the IP address for each of the servers that are running Zookeeper. This command clears out the Zookeeper cache so the next time you run it you will have a false message returned.

Screen Shot 2015-10-23 at 10.35.58 AM.png

How to Remove the SAP HANA Vora Service from Ambari and How to Delete the SAP HANA Vora Folder

Screen Shot 2015-10-22 at 10.55.49 AM.png

In the second video of the series Bob shows how to de-install the SAP HANA Vora service from the Hadoop cluster in Ambari. After, Bob details how to de-install the SAP HANA Vora extensions from the Hadoop Linux server.


First, in Ambari Bob stops the SAP HANA Vora service. Bob then navigates to the webpage pictured below where a list of the services that are installed on his Hadoop cluster is displayed.

Screen Shot 2015-10-23 at 10.58.41 AM.png

Back in PuTTY as the Vora user Bob runs the curl command pictured below to delete the SAP HANA Vora service.

Screen Shot 2015-10-23 at 11.00.57 AM.png

After de-installing the service, Bob restarts Ambari using the EC2 user in PuTTY. Next back in PuTTY as the Vora user, Bob navigates to the Vora folder to view the Vora extensions and then deletes the folder with a rm -r command. This removes the extensions from the Linux server.

Screen Shot 2015-10-23 at 11.10.28 AM.png

To conclude the video, Bob as the EC2 user, uploads the upgraded Vora installation files from his dropbox.


Re-installing and Testing SAP HANA Vora

Screen Shot 2015-10-22 at 10.57.56 AM.png

In the final video of the series Bob details how to re-install SAP HANA Vora. The installation process is covered more thoroughly in this video from the single node SAP HANA Vora installation series.


In PuTTY as the EC2 user, Bob runs the script pictured below to execute a package with the upgraded Ambari service.

Screen Shot 2015-10-23 at 11.25.57 AM.png

Then after restarting Ambari, Bob chooses to add the new version of SAP HANA Vora as a service.

Screen Shot 2015-10-23 at 11.28.38 AM.png

Bob keeps the default settings when following the simple steps of the add service wizard before he deploys the new SAP HANA Vora service. After, Bob starts and stops all of the Hadoop services in Ambari.


Now back in PuTTY, Bob logs in as the Vora user and installs in a newly created folder a package that contains all of the new SAP HANA Vora scripts and services.

Screen Shot 2015-10-23 at 11.34.12 AM.png

Finally Bob tests the upgraded version of SAP HANA Vora using Spark Shell. After importing the SapSQLContext and assigning it to the variable with the new version, Bob creates a table using the same script he used in the first video of this series. The table’s path points to the text.csv file from HDFS. Bob again confirms the table’s creation by viewing its data with a select * statement.


In these three videos Bob has shown how to upgrade a SAP HANA Vora system on a single node. First, Bob cleared the Zookeeper cache. Then Bob de-installed the SAP HANA Vora service from Ambari and removed the scripts that contained the Vora extensions from the Linux server. Lastly, Bob installed the upgraded version of SAP HANA Vora and tested it’s connection by creating a SAP HANA Vora table in Spark Shell.


For more SAP HANA Vora tutorial videos please check out this playlist


SAP HANA Academy – Over 1,200 free tutorial videos on SAP HANA, SAP Analytics and the SAP HANA Cloud Platform.


Follow us on Twitter @saphanaacademy and connect with us on LinkedIn.

To report this post you need to login first.

2 Comments

You must be Logged on to comment or reply to a post.

  1. Gregory Misiorek

    Hi Tom (and Bob),

    there are 49 youtube videos if i’m not mistaken, but after seeing about half of them i still haven’t come across anything about the economics of managing multiple AWS HANA VORA Hadoop instances or enterprise data (like POs, invoices, sales orders, etc.) coming from different ERP systems and going into reporting dashboards.

    is this something we would see towards the end of the series?

    thanks,

    greg

    (0) 
    1. Tom Flanagan Post author

      Hi Greg,

      Thanks for reading the blogs and watching the videos in the Vora series!

      Yes this is something you should expect to see in the coming weeks as we wrap up the series. Please be on the lookout for videos that detail how to use multiple AWS HANA Vora Hadoop instances and on using enterprise data from various ERP systems. Bob is currently creating more SAP HANA Vora tutorials to address these and other scenarios.

      Best Regards,

      Tom

      (0) 

Leave a Reply