I canβt find a solution for 1. But I made a short solution for 2. which works in zeppelin using python (2.7), sqlalchemy (sql wrapper), mysqldb (mysql implementation) and pandas (make sure these packages are installed, everything they are in Debian 9). I wonder why I did not find such a solution before ...
%python from sqlalchemy import create_engine import pandas as pd sql = "select col1, col2 from table limit 10" df = pd.read_sql(sql, create_engine('mysql+mysqldb://user: password@host :3306/database').connect()) z.show(df)
If you want to connect to another database, such as db2 or oracle, you need to use other python packages and edit the first part of the create_engine line.
source share