r.konijnenburg: SAP HANA Developer Access Beta ... | SCN
Getting Started New sletters Store

Welcome, Guest



Search the Community

Solutions Industries Lines of Business

Services & Support Training & Education University Alliances

About SCN Partnership Events & Webinars

Downloads Developer Center Innovation
Activity Brow se Communications Actions


SAP HANA Developer Access Beta program - get the best out of your test-drive!
Previous Next Posted by Ronald Konijnenburg in r.konijnenburg on Dec 26, 2011 10:00:55 AM
Share 11 2 Tw eet 10 Like 6

A couple of days ago I was Lucky enough to receive an invitation to the SAP HANA Developer Access Beta program. For those of you not aware what that is, there is an excellent FAQ on SDN which you can find here: http://wiki.sdn.sap.com/wiki/pages/viewpage.action?bc=true&pageId=257820641 The following paragraphs will describe 7 steps towards your first HANA reporting by using SAP HANA Sandbox.

Step 1 – Cloudshare
In your invitation mail there is a link to cloudshare.com. Create a new account, log on to the desktop and followpostpost the following YouTube video on how to set up your own HANA system: http://www.youtube.com/watch?v=9NKSYgt5eX4 A great tip is given on how to use remote desktop instead of using the web version which comes with Cloudshare. This is highly recommended as navigation is much easier in the remote desktop. Logon details for your RDP session are given on the Cloudshare page each time you activate the environment:

Step 2 – Getting big data
So you managed to set up a system and created a RDP session. Good job! Now to find some “big data”. In this article I’m using data which I downloaded from the guys over at Infochimps. I’ve used the following data sources which in total will give me about 20 million records. AMEX Exchange Daily 1970-2010 Open, Close, High, Low and Volume NASDAQ Exchange Daily 1970-2010 Open, Close, High, Low and Volume NYSE Exchange Daily 1970-2010 Open, Close, High, Low and Volume The files contain stock exchange data. Great recipe for finding something interesting. You will be getting a bunch of separate csv files. Use the daily prices ones. For simplicity sake I have merged all files into three separate csv files. Good old DOS can help you with that by using the following command: copy *.csv importfile.csv Make sure to execute the command in the same directory your files are placed. Replace importfile.csv with something recognisable (like AMEX.csv, NASDAQ.csv, NYSE.csv).

Step 3 – Create your table in HANA
And now the fun begins! You need to create a table which holds all your data records. Remember those files I downloaded from Infochimps? The files have the following structure:



"PRICELOW" DECIMAL (15.konijnenburg: SAP HANA Developer Access Beta . "PRICEOPEN" DECIMAL (15. | SCN That means I need to replicate that structure into my HANA table."NASDAQ"( "EXCHANGE" VARCHAR (10) not null. Fire off your favourite FTP client (mine is FileZilla): scn. "STOCK" VARCHAR (10) not null. primary key ("EXCHANGE".sap. "PRICECLOSED" DECIMAL (15.T_EVR eet rm YTMFPSRE Et voila. Modeler: Please note that you should create the table in your own schema and use Column Store (to witness awesome speed later on).2)... "DATE" DATE not null.2/13/13 r. The following command will create your table: create column table "S0001432066". More specifically you should create a folder on the server equal to your SCN number (in my case S0001432066).2).com/people/r. "STOCKVOLUME" DECIMAL (15)."STOCK". You can create your table in the HANA studio using the modeler or by using SQL."DATE")) Step 4 – FTP and import your files into the HANA system The guys over at SAP will make you do a little treasure hunt in order to find the user id and password for the FTP server. "PRICEHIGH" DECIMAL (15. a username and password (masqued for obvious reasons): Take note of what is mentioned on where to store the files.konijnenburg/blog/2011/12/26/sap-hana-developer-access-beta-program--get-the-best-out-of-your-test-drive 2/13 .2). Go into you HANA system and execute the following SQL statement: Slc *fo SSE. "PRICECLOSEDADJ" DECIMAL (15.2). SQL: I prefer SQL because it’s faster.2).

.sap.046 minutes . | SCN Create a directory and store your files: Take note that next to my files containing the data there is a so called “ctl” file.' optionally enclosed b y '"' error log 'Text_Tab les.csv the file I will load.konijnenburg: SAP HANA Developer Access Beta .err NASADAQ is the name of my created table. 0 Rows? No it’s not actually. AMEX.ctl'' successfully executed in 7:22. After a while you will get the following result back: Statement 'IMPORT FROM '/dropb ox/S0001432066/AMEX. /dropbox/ is a prefix.ctl' Note the name of the folder I created in step 4 (folder S0001432066).com/people/r.csv' record delimited b y ' ' fields delimited b y '. additional information can be found in this post: How to load CSV files into HANA Time to import your 20 million something records into HANA! Execute the following SQL statement: IMPORT FROM '/dropb ox/S0001432066/AMEX.konijnenburg/blog/2011/12/26/sap-hana-developer-access-beta-program--get-the-best-out-of-your-test-drive 3/13 .Rows Affected: 0 Hang on I hear you thinking. The files have the following content: Import data into tab le S0001432066. You can check by firing off the following SQL statement: select count(*) from NASDAQ That looks promising! Let’s check some more: We have data! Look at the log file: Fetched 30 row(s) in 15 ms Wow! scn.2/13/13 r. These files are required in order to be able to load data in your created (NASAQ) table.."NASDAQ" from 'AMEX. If required.

2/13/13 r. As an extra step your could create an extra table which holds the stock names.konijnenburg: SAP HANA Developer Access Beta . you can join your two tables and have texts together with the stock names. | SCN Step 5 – Create an Analytic view for reporting First step create a package which will hold your view: Create a so-called Analytic View: Give it a name: Select your table: Drag your objects into the attributes and measures sections: Validate. If you follow the same procedure as for creating the table with the stock records. save and activate your view. Note that you can preview your data and even auto document if by using these buttons: Important! In case preview fails it is likely you have to “grant” your schema by executing this statement: grant select on schema s0001432066 to _SYS_REPO with grant option Replace s0001432066 with your own namespace ofcourse. Well done! We can use this view in Explorer and Excel.com/people/r.sap.konijnenburg/blog/2011/12/26/sap-hana-developer-access-beta-program--get-the-best-out-of-your-test-drive 4/13 . scn...

| SCN Preview: Step 6 – Using Explorer to report on your data On your desktop a shortcut to Explorer can be found: Fire it off and be sure to enter the correct server which can be found in your invitation mail: Go to manage spaces : Select your view and press “New”: Give it a name: scn..sap.2/13/13 Sequence for this would be: 1.konijnenburg/blog/2011/12/26/sap-hana-developer-access-beta-program--get-the-best-out-of-your-test-drive 5/13 . Link your analytic view together with your attribute view Result would be: r.konijnenburg: SAP HANA Developer Access Beta ..com/people/r. Create an attribute view 3. Create and load your text table 2.

konijnenburg: SAP HANA Developer Access Beta .2/13/13 r. Apple stock prices in the year he had to leave Apple: Be sure to select enough data to get a nice trend.sap..com/people/r. Refresh your page and you have a new information space: Press it and start analysing! This one is for you Steve.konijnenburg/blog/2011/12/26/sap-hana-developer-access-beta-program--get-the-best-out-of-your-test-drive 6/13 . | SCN Put in your objects: And press ok! Don't forget to index your data.. scn.

.com/people/r.2/13/13 r.konijnenburg: SAP HANA Developer Access Beta .konijnenburg/blog/2011/12/26/sap-hana-developer-access-beta-program--get-the-best-out-of-your-test-drive 7/13 .sap. Set some filters and analyse your data at great speed! scn. Fire off Excel and connect to your view: Choose Other/advanced: Select the MDX connection: Enter server credentials (check your invitation mail if not known): Select your view: You now have your data in a pivot table format. | SCN Step 7 – Using Excel to report on your data There is also a possibility to use Excel pivot tables for your reporting needs..

konijnenburg/blog/2011/12/26/sap-hana-developer-access-beta-program--get-the-best-out-of-your-test-drive 8/13 . Regards. but basically every SCN user can get access. Please do contribute more of these blogs.sap.com/people/r.your access is extended until Feb 28.. go to http://sapdevcenter. Krishna Tangudu Like (0) Juergen Schmerder Jan 10. 2012 1:34 AM Hi Ronald. I don have HANA Developer Access but seeing your blog i understood how it would look like if i have access. but Excel makes it a bit sluggish in a RDP session. --Juergen Like (0) Ramesh Choragudi Jan 11. thanks a lot for this awesome getting started blog. We'll make sure every new user of the Developer Center sees this :) And you just earned yourself another free month on the Developer Center . So that we can learn and experiment the same when we get a chance for HANA Hands-On.konijnenburg: SAP HANA Developer Access Beta .2/13/13 r. 2012 7:54 AM (in response to Krishna Tangudu) scn. | SCN Note that data retrieval is at great speed. 2012 3:44 AM (in response to Juergen Schmerder) Hello Ronald Konijnenburg. 2012 8:36 AM (in response to Krishna Tangudu) Hi Krishna. I hope you'll share more of your findings with the community! cheers --Juergen Like (0) Krishna Tangudu Jan 10.. Without an invitation code (aka access code) it might take a few days. If you want to try the steps yourself.com and request access to the sandbox systems. Congrats . Many thanks for bearing with me till the end and good luck with this great opportunity to test drive HANA! 19250 View s Average User Rating (19 ratings) Share 11 2 Tw eet 10 Like 6 32 Comments Juergen Schmerder Jan 10.

konijnenburg/blog/2011/12/26/sap-hana-developer-access-betaprogram--get-the-best-out-of-your-test-drive I then followed the guide for the table for USERS in this guide: http://wiki. Ramesh Choragudi Like (0) Ronald Konijnenburg Jan 10. I am on hana server 7: hanasvr-07 00 I have been following the NASDAQ guide from the wiki. Appreciate your time and efforts. Like (0) Kaustubh pargaonkar Feb 9. Thanks. I followed the guide posted here: http://scn. the permissions. 2012 1:57 PM Ron.sdn.konijnenburg: SAP HANA Developer Access Beta . tx for the feedback guys! Much appreciated. I do not recall the entire list of things which I did. i believe i touched upon the folder settings. i continuously keep getting the error.2/13/13 Hello Mr. 2012 4:01 AM (in response to Juergen Schmerder) Wow.CTL No error log is generated either . i also checked the file format and removed a couple of parameters from the load file syntax.com/people/r. Best regards. 2012 9:32 AM (in response to Ravi Nataraju) Hi Ravi. I retrieved the data from infochimps and uploaded it to the folders: /S0004092614 and /dropbox/S0004092614 I tried following the various guides for importing the data.Am i missing something? Like (0) Ravi Nataraju Jun 12. | SCN Thanks for your blog and it is lot helpful. 2013 7:15 PM (in response to Ronald Konijnenburg) Hi Ronald. 2012 2:29 PM Hi. r.com/people/r. But the clod share currently has SPS05 and the environment is completely different and specially from step 5 from creating analytic view the wizard has changed.. I have stumbled upon the same problem faced by you. Please keep continue your sequence on this. Ramesh Choragudi Like (0) Ramesh Choragudi Jan 11. Kaustubh Like (0) Naveen Chow dary Jan 11. Could you let me know how you resolved your problem of SAP DBTech JDBC: [2]: general error: Cannot open Control file? Like (0) Zeeshan Shah Jun 18. Your blog is amazing for jump start on HANA. 2012 2:19 PM (in response to Zeeshan Shah) Hi Zeeshan.konijnenburg/blog/2011/12/26/sap-hana-developer-access-beta-program--get-the-best-out-of-your-test-drive 9/13 . Ronald. 2012 7:57 AM (in response to Krishna Tangudu) Hello Ronald. This blog is awesome and it helped me. It will be really great if you can update the current blog to work for SPS05.com/wiki/display/inmemory/Importing+CSV+files+into+SAP+HANA It still gives an error: SAP DBTech JDBC: [2]: general error: Cannot open Control file.sap. No doubt it is a very great blog and I got lots of learning by reading your blog.sap.sap. Best regards. -Naveen Like (0) Zeeshan Shah Mar 15. I tried different things with the file.. scn. /dropbox/S00040926142/USERS. Please keep continue your sequence.

Thanks In Advance.2/13/13 r. i have to transform into month and quarter. 2012 10:04 PM Hi Ronald: Can you please share the link for downloading the data files ? I have got HANA box access. Raghu. etc.Can someone guide me with details Like (0) zhan gao Jul 25.konijnenburg: SAP HANA Developer Access Beta . could please explain about how to generate data for calmonth.the error message "Failed to retrieve the data source list. 2012 5:57 AM some errors when i go to manage spaces . I just got access to the sandbox. Like (0) Damodaran Kuppurajan Dec 13. Thank you much Ronald Konijnenburg Like (0) phani kumar Apr 30. Phani Rayasam Like (0) Uw e Fetzer May 14.how can i ask for access code from http://sapdevcenter.. Thank you. sivaumar Like (0) jude2011 j Jul 18. I was amazed with the clear path of explanation and instructions provided. i have a table contains day wise data. Thanks Like (0) Pradeep Ginjupalli Apr 17. can you please re-upload the pics to this blog space (the dropbox pics disappeared)? Thank you. 2012 5:55 AM (in response to Raghu Duggirala) Ronald. I'm glad to take it from here and reach the next level. 2012 8:47 AM sorry i am new to this. Can anyone post details on implementing Step2 . If Yes Please give us input as iam not able to see calculated Measure in Bo explorer.and cal quarter using calday in SAP Hana.Request timed out" who knows why? Like (0) scn. Regards. Can we publish Calculated Measures or calculated view in BO Explorer.konijnenburg/blog/2011/12/26/sap-hana-developer-access-beta-program--get-the-best-out-of-your-test-drive 10/13 . 2012 9:52 AM Hi experts. 2012 3:13 PM Hi Ronald.sap. | SCN Like (0) Raghu Duggirala Apr 8. 4.com. 2012 11:43 AM Hi Ronald. 2012 5:39 AM Certainly Helpful. Uwe Fetzer Like (0) Sivakumar rajamani Jun 27.toget big data from Infochimps? I am assuming that you can move further only after completing Step2 to create Step3..com/people/r.

It was due to the ftp program (which always worked so far). But as soon as I try to open an ftp session I get the following message: The host 'ftp. . I figured out the ftp user using the sql command as indicated above. 2012 11:29 AM Hi Experts. It seems to have fallen asleep. 2012 3:45 PM (in response to Christine Reck) Problem is solved."NASDAQ" from 'AMEX. Dinesh Like (0) Raj S Sep 12. Regards Like (0) Dinesh Kumar Agarw al Sep 12. 2012 8:14 PM Hi Ronald. 2012 5:11 PM hi Ronald.konijnenburg: SAP HANA Developer Access Beta .I logged in with the Username & Password. While loading the data i am getting below error: Could not execute 'IMPORT FROM '/dropbox/DINESH/AMEX.err Thanks.2/13/13 Christine Reck Jul 26.I am using FILEZILLA on Windows 7 as my FTP-Client.. 2012 7:29 PM Hello community! I have got a very big and strange problem at Step 4 . everything works fine . | SCN Problem with ftp. that I CAN load my *csv-Files in any other existing folder.csv' record delimited by ' ' fields delimited by '.com' is unreachable. unfortunately my BusinessObjects Explorer stated "Failed to index the information space. which I created. some records are loaded. My Control file is: Import data into table P1527334943. 2012 9:10 AM (in response to User Union) Problem solved. Like (0) Christian Punz Aug 7. scn.sap. but not in my own!??! The Name of my folder is: S0002866913 Thank you very much for helping. there is always the following error code: 226 Transfer done (but failed to open directory). I tried several times. There you can see the solution.' optionally enclosed by '"' error log 'Text_Tables. Request timed out". What a powerful article from you. I followed the guidelines for exchaaging files using ftp.BUT: I can not load my *csv-Files into my folder.ctl' SAP DBTech JDBC: [139]: current operation cancelled by request and transaction rolled back: CSV file has some bad lines and cannot create bad file. 2012 2:22 PM r.. Is there anything you can do about this? Like (0) Christine Reck Jul 26. Like (0) User Union Sep 11.FTP and import your files into the HANA system. thank you for the great blog which helped me to better understand HANA. . Like (0) User Union Sep 12.konijnenburg/blog/2011/12/26/sap-hana-developer-access-beta-program--get-the-best-out-of-your-test-drive 11/13 .sapdevcenter. Nonetheless I tried another one and it worked.com/people/r. => The strange thing is.

I have followed the procedure step by step listed in this document and tried ever possible trick people have shared but still not able to import . you can look at amexnew.csv > AMEX. My Folder Name is: P1716453917 I download .I am seeing an error with file permissions. this is what it looks like: Import data into tab le P1716453917. Thanks in advance for your help.ctl. One issue .com/people/r. 2012 3:58 PM Hi. | SCN Really it will be a good start to all who want to taste HANA and will be delicious as you added main masala to it..clt file. Like (0) bjoern bayerschmidt Oct 30. but what if I wanted HANA to UNION these two tables essentially..' optionally enclosed b y '"' error log 'Text_Tab les. Regards Raj Like (0) Ronald Konijnenburg Sep 12. Thank you and keep posting. 2012 1:21 PM Hi Ronald. and used the import command.. I uploaded the data into Linux box under S0005971056. Thanks Regards /edit: Sorry.com/message/13582079 Like (0) Srinivas Chittimalla Oct 11.. I also do not have sufficient authorisations to change the . I am new to SAP and trying to self educate SAP HANA.. I have access to hanaserver-03. thanks for this great post.csv and amexnew.csv' record delimited b y '\n' fields delimited b y '. Is your dropbox closed or so? Can you please attach the screenshots again to this post. the problem is here http://scn. the pictures will show on my personal notebook Thanks Like (0) Brian Feeny Nov 7.csv files from infochimps and merged them together via cat *.konijnenburg: SAP HANA Developer Access Beta . thanks. but chmod command is failing all the time.err file permissions via FTP. but it is producing the error file same size as the CSV file. 2013 10:08 AM Hey Guys. 2012 11:05 PM What would be the procedure once you have say NYSE data loaded and AMEX data. it is not giving any error. and now you want to look at both of those combined? I realize I could just merge the two data files.sap. it was the proxy.err file generated during the CSV upload into HANA. so I am blind as to what the errors in the .csv file into HANA. But i cannot see any pictures.konijnenburg/blog/2011/12/26/sap-hana-developer-access-beta-program--get-the-best-out-of-your-test-drive 12/13 ..err file actually are.sap.2/13/13 r. would I do that as an Analytic view? Can someone give me some high level steps on what I would want to do there? Like (1) Prashant Maniktala Jan 13.err scn. 2012 4:40 PM Hey. cat command returns the same result) Created .csv (using mac where copy command doesnt work. A very good getting started guide."NASDAQ" from 'AMEX. in that I do not have permission to view the . In case anyone else has the same issue (or knows how to fix it). I try to change the file permissions to 777.. unfortunatley I am not able to open the error file. 2012 9:04 PM (in response to Raj S) Tx a lot. made me smile! Like (0) Kevin Small Oct 10.

com/people/r.sap.konijnenburg: SAP HANA Developer Access Beta .. I am hoping someone from this thread could triage my issue.. I am using tcommand IMPORT FROM '/dropbox/P1716453917/AMEX. I have already spend few hours on it and getting no where.ctl'' in 73 ms 542 µs .ctl' and it throws the following error: "Could not execute 'IMPORT FROM '/dropbox/P1716453917/AMEX.2/13/13 r. I have tried modifying the import part to include another /dropbox. Thanks Like (0) Site Index Privacy Contact Us Terms of Use SAP Help Portal Legal Disclosure Copyright Follow SCN scn. but doing so throws "Cannot open Control file" error. SAP DBTech JDBC: [2]: general error: Error processing a statement at " {\rtf1\ansi\ansicpg1252\cocoartf1187\cocoasubrtf340" " File permissions for both my files are set to 777. | SCN Uploaded both the files to my user folder via FileZilla Path: /P1716453917 The step i am having issue with is importing data into HANA.konijnenburg/blog/2011/12/26/sap-hana-developer-access-beta-program--get-the-best-out-of-your-test-drive 13/13 . Appreciate any advice or resolution in advance.

Sign up to vote on this title
UsefulNot useful