I'm facing connectivity issues when i am trying to connect to hive through beeline or sqlalchemy. Otherwise it is working perfectly fine.
Problematic Beeline Command:
jdbc:hive2://localhost:10000
jdbc:hive2://localhost:10000/default
Problematic sqlalchemy Command:
hive://localhost:10000/default
I am able to connect to Hive otherwise by just entering hive in CLI or !beeline !connect jdbc:hive2
I am using below mentioned docker image:
https://github.com/suhothayan/hadoop-spark-pig-hive
SqlAlchemy does not support natively Hive.
You need to install piHive to make it work. Can you provide you version of pyHive if installed or try to install it using
pip install PyHive
Related
I'm trying to install a mysql client on a devcontainer and was wondering if there's an easy way to get this up and running instead of adding a block of apt-get statements in the devcontainer docker file.
I am new to ubuntu and oracle, and I couldn't install oracle 18c on ubuntu! If anyone can help me with a clear solution for a newbie!! Thank you!
enter image description here
Oracle is not designed to run on Ubuntu. There are a few different branches of the Linux family tree, and ubuntu is an entireley different branch than the one oracle was designed for. You will find hacks on the interntet to get it installed, but that's all they are - hacks. And if you do get it installed there is never any assurance that everything will work as it should.
The ususal approach for running oracle on an Ubuntu machine is to install Oracle Virtual Box, using that to create a VM that runs a certified OS, like Oracle Linux. Then install your oracle db on that.
I have a few blog articles on it, here.
There is a hack with docker to use Oracle database on Ubuntu. Simply download/pull the container available at
https://hub.docker.com/r/gvenzl/oracle-xe
Then run it as
docker container run -d -p 1521:1521 -e ORACLE_PASSWORD=oracle --name oracle21 gvenzl/oracle-xe
and then connect to it from Ubuntu via some SQL editor e.g., Oracle SQL developer.
I'm trying to set up a wordpress environment. Using homebrew I've installed laravel valet and mariadb, and am using sequel pro to manage databases.
Right now, I can start mariadb using brew services start mariadb.
However, when I go to sequel pro and enter 127.0.0.1 and username: root for my credentials, I get the error "Can't connect to MySQL server on '127.0.0.1' (61)"
I can't figure out where my issue is. Can anybody help me troubleshoot?
I installed cassandra but I do not see cqlsh. I have anaconda so I installed cqlsh from that
pip install cqlsh
Successfully installed cqlsh-5.0.3
When I try to connect to cassandra I get this error
[idf#node1 sbin]$ cqlsh 10.0.0.60
Connection error: ('Unable to connect to any servers', {'10.0.0.60': ProtocolError("cql_version '3.3.1' is not supported by remote (w/ native protocol). Supported versions: [u'3.1.7']",)})
[idf#node1 sbin]$ cqlsh 10.0.0.60 9160
Connection error: ('Unable to connect to any servers', {'10.0.0.60': ConnectionShutdown('Connection <AsyncoreConnection(140356880106448) 10.0.0.60:9160 (closed)> is already closed',)})
[idf#node1 sbin]$
Where do I find the cqlsh that comes with cassandra from datastax? Or if the above is supposed to work, what do I need to do?
Try connecting like this:
$ cqlsh 10.0.0.60 9042 -u -p --cqlversion="3.1.7"
If anaconda2 is pre-installed in the system, cqlsh doesn't work since it cannot import cqlshlib. Firstly, you have to install cqlsh inside anaconda and then overwrite cqlshlib with the one installed at system level:
pip install cqlsh
find /usr/lib/ -name cqlshlib | xargs cp -R -t ~/anaconda2/lib/python2.7/site-packages/cqlshlib/
Running OSX 10.9.2, I just ran brew upgrade mongo which upgraded my mongo to version 2.6
As per the instructions I've run
launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.mongodb.plist
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.mongodb.plist
But now when I run mongo it says
MongoDB shell version: 2.6.0
connecting to: test
2014-05-05T10:07:22.769+1000 warning: Failed to connect to 127.0.0.1:27017, reason: errno:61 Connection refused
2014-05-05T10:07:22.770+1000 Error: couldn't connect to server 127.0.0.1:27017 (127.0.0.1), connection attempt failed at src/mongo/shell/mongo.js:146
exception: connect failed
Things I've tried:
I've seen this covered on other SX questions and people have suggested creating a /data/db folder but this wasn't needed previously and I don't want to lose the data from my old instance of mongo. Regardless, I tried it, and chowned it to allow read/write from my user account, but that made no difference. (FYI my data lives in /usr/local/var/mongodb/ which is typical I believe for OSX.)
A lot of the other questions also assume Linux rather than Mac, or they wade off into PHP land which is not relevant to me.
I've also tried rebooting my Mac.
I fixed it by forcing home-brew to restart it.
brew services restart mongodb
and voila
$ mongo
MongoDB shell version: 2.6.0
connecting to: test
>
now works a treat.