A Slice of Raspberry Pi with SAP Lumira
No, you can’t actually run Lumira desktop on the Raspberry Pi, and sadly, even with the new Epiphany browser, there doesn’t yet seem to be a way to connect to Lumira Cloud, but you can run Sybase SQL Anywhere on the device, and connect to it from Lumira Desktop.
Why would anybody want to do this? – because we can! Or more realistically, you might just want to use a Raspberry Pi and SQL Anywhere in an internet of things scenario, collecting data from sensors.
I followed the recommended steps to install and configure the SQLAnywhere 16 demo database on my Raspberry Pi (although note that version 12 is currently the recommended version for the BusinessObjects tools, including Lumira).
Here’s a quick summary of those steps — refer to the links above for more details.
Register for the latest SAP SQL Anywhere 16 Developer Edition. After registering you will be sent a registration key over email.
Fire up your Raspberry Pi, then download and extract the SQL Anywhere Developer Edition (it’s easiest to do this by connecting to the Pi from another computer using SSH, i.e. using a program like PUTTY for Windows, or Terminal for Mac – you can use “sudo ifconfig” to find out the Raspberry Pi’s current ip address – you can then just copy and paste the lines below.)
tar -xvf sqla16developerlinuxarmv6.tar.gz
Install SQL Anywhere using the key your received earlier over email (accept all of the defaults)
Return to your home directory
Add the path variables to the current shell’s environment (see posts above on how to do this permanently).
To test out the environment, the following should return the current version of the server (e.g. 126.96.36.1992)
If everything is working, create a copy of the demo database and start it as “mydemo”
cp /opt/sqlanywhere16/demo.db .
dbspawn -f dbsrv16 -n mydemo -o server.out demo.db
You can then switch to Lumira on another PC connected to the same network, open a new document, choose “Sybase SQL Anywhere 12 – JDBC Drivers”, and fill in the following fields:
server: 192.168.0.35:2638 <replace with the IP address of the Raspberry PI
The drivers seems to work OK, although I didn’t get a list of the available tables. To get data, you can do a SQL query such as “SELECT * From Customers” (you can see the full demo schema here)
You can then manipulate the data in Lumira as from any other data source to create visualizations:
To stop the database on the Raspberry Pi you can use:
dbstop -c “Server=mydemo;UID=DBA;PWD=sql"
[This post was first published on the Business Analytics Blog. Follow me on Twitter for more!]
this is so geeky in all sorts of wonderful ways !!!