A recommended step to avoid getting an error along the lines of "AttributeError: type object 'java.sql.Types' has no attribute '__javaclass__'", would be to downgrade your jpype by running the following:
pip3 install --upgrade jpype1==0.6.3 --user
Restart your kernel when you perform the downgrade.
Step 3: Connect to Impala
Finally, connect to your impala, using the following sample code: