Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to connect to Impala #111

Open
mrunmayeejog opened this issue Dec 6, 2017 · 0 comments
Open

Unable to connect to Impala #111

mrunmayeejog opened this issue Dec 6, 2017 · 0 comments

Comments

@mrunmayeejog
Copy link

mrunmayeejog commented Dec 6, 2017

I have followed these steps:
git clone https://github.com/catherinedevlin/ipython-sql
cd ipython-sql
python setup.py install

%config SqlMagic.autocommit=False
%sql impala://impala-host-0:21050/testdb

I am getting following error. Am I missing out on some configurations?

AttributeErrorTraceback (most recent call last)
in ()
----> 1 get_ipython().magic('sql impala://gam-cdh-ubuntu-gobblin-fivedec-hadoop-dn-0:21050/')

/usr/lib/python3.4/site-packages/IPython/core/interactiveshell.py in magic(self, arg_s)
2156 magic_name, _, magic_arg_s = arg_s.partition(' ')
2157 magic_name = magic_name.lstrip(prefilter.ESC_MAGIC)
-> 2158 return self.run_line_magic(magic_name, magic_arg_s)
2159
2160 #-------------------------------------------------------------------------

/usr/lib/python3.4/site-packages/IPython/core/interactiveshell.py in run_line_magic(self, magic_name, line)
2077 kwargs['local_ns'] = sys._getframe(stack_depth).f_locals
2078 with self.builtin_trap:
-> 2079 result = fn(*args,**kwargs)
2080 return result
2081

in execute(self, line, cell, local_ns)

/usr/lib/python3.4/site-packages/IPython/core/magic.py in (f, *a, **k)
186 # but it's overkill for just that one bit of state.
187 def magic_deco(arg):
--> 188 call = lambda f, *a, **k: f(*a, **k)
189
190 if callable(arg):

in execute(self, line, cell, local_ns)

/usr/lib/python3.4/site-packages/IPython/core/magic.py in (f, *a, **k)
186 # but it's overkill for just that one bit of state.
187 def magic_deco(arg):
--> 188 call = lambda f, *a, **k: f(*a, **k)
189
190 if callable(arg):

/usr/lib/python3.4/site-packages/ipython_sql-0.3.9-py3.4.egg/sql/magic.py in execute(self, line, cell, local_ns)
80 user_ns.update(local_ns)
81
---> 82 parsed = sql.parse.parse('%s\n%s' % (line, cell), self)
83 flags = parsed['flags']
84 try:

AttributeError: 'module' object has no attribute 'parse'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant