Cannot connect PrestoDB to Apache Superset - presto

I am trying to connect prestodb which is running on localhost:8080 to apache presto(installation by scratch not the docker one).
I have installed the Pyhive connector as the indicate in the documentation, also I have tried:
hive://hive#localhost:8080/mysql
presto://localhost:8080/
presto://localhost:8080/mysql
presto://localhost:8080/mysql/test
hive://hive#localhost:8080/mysql/test
where mysql is the catalog and the test is the name of the db, and nothing works :/
Any ideas ?
Thank you

Actually I was missing the python package "requests" that is needed from PyHive.. So a pip3 install requests solved the issue!

Related

bash: /home/linuxbrew/.linuxbrew/bin/mongo: Permission denied [MongoDB 4.4 set up on AWS cloud 9 IDE]

I'm trying to install Mongodb version 4.4 on a AWS IDE (using a Mac and Ubuntu set up). I receive the following error message:
bash: /home/linuxbrew/.linuxbrew/bin/mongo: Permission denied
It seems it's a permission issue, however I have no idea to to rectify this. Any ideas or steps to take to resolve this?
it seems there is already a discussion about this error on the MongoDB forum.
Here is the link
They closed it as Won't fix.
The final answer was provided by Mathew Robinson as:
Closing this as Won't Fix, it seems that Linuxbrew is a very small
subset of homebrew users and we support from source builds as well as
Linux packages for all distributions we support.
In the case of Linuxbrew it would just be a way to run our from source
builds that we already document how to do.
I have the same problem
the problem is that you use homebrew and the files are in a restricted area which means Linux can't modify it.
I solved it by:
full this guide to Install MongoDB Community Edition :
https://docs.mongodb.com/manual/tutorial/install-mongodb-on-ubuntu/
then, instead of using mongod use mongosh which allows you to add data to the table.
I tried mongod and it never works and I don't know why.
it give aborting after fassert() failure\n\n"} so mongosh work fine.

Plesk: Using nodejs results in an error "Cannot find module 'phusion_passenger/line_reader'

Having an issue with Plesk and nodejs-extension using phusion passenger.
My Plesk Version: Plesk Obsidian 18.0.31 Update #2
My OS: Ubuntu 18.04.5 LTS
Using nodejs 12.4.0 which is primarly installed via plesk.
I set up two domains. On both i run npm install via the plesk ui. Everything works and nothing results in an error, until I head to the domains, I got following error messages within development mode:
On domain 1:
Domain 1 error
On domain 2
Domain 2 error
Its a bit confusing since everything seems to work fine.
I have already tried to set an Environment variable in /etc/nginx/conf.d/phusion-passenger.conf:
passenger_env_var NODE_PATH /usr/share/passenger/node;
Reason is that in phusion passengers github somebody recommends this within an issue. And in /usr/share/passenger/node/phusion-passenger/ I found the line_reader.js.
But this doesn't solve the problem.
Thanks for helping me out
So I figured out, that the path-variables aren't correct for phusion to work. After editing them hard in the code everything works fine.
I am still not happy about this solution. So if anyone knows another option to solve this. please suggest.

Upgrade Python modules at Bluemix, to get out of the error (No trigger by the name “interval” was found)

I am using the ipython of apache spark service at bluemix. I need to reinstall setuptools, but I can't enter password for sudo. How can I proceed to make it work ( the goal is to fulfil the following actually )
https://bitbucket.org/agronholm/apscheduler/issues/77/lookuperror-no-trigger-by-the-name
Thanks,
Boris
You do not have root permissions with this service, so you cannot install anything at the system level and you cannot run sudo. If you want to install apscheduler, then run pip with the '--user' arg so that it installs local to your tenant.
Update: IBM has deployed new software levels last week. If you create a new Apache Spark service on Bluemix, your environment won't include the offending version of setuptools anymore.
original answer:
As Randy pointed out, you cannot reinstall setuptools. Until IBM upgrades that package, use the workaround mentioned in the issue you linked:
"In the meantime, you can instantiate the triggers manually"
https://bitbucket.org/agronholm/apscheduler/issues/77/lookuperror-no-trigger-by-the-name#comment-14180022
The author of apscheduler apparently added a check for the version of setuptools. You'll have to use an older version of apscheduler without that check.

Unable to run query in Presto

I am installing presto for first time. I created a single ubuntu instance in amazon ec2 and installed all the dependences required to install presto. I followed https://github.com/facebook/presto .
I did git clone and got the source code then I ran $mvn clean install as per instruction. Then I ran $presto-cli/target/presto-cli-*-executable.jar. while executing query it is showing an error as shown in image below
Please help me in solving this. The same I want to try in cluster containing master and slaves.
while working with ec2 make sure that you have your own AMI, Keypair and security group.
It seems, your server is not running or is hosted on another port number.
Have you started the server using
./presto-server-x.x/bin/launcher.py start

I'm having issues installing pyscopg2 on Mac OSX

ok, so I have researched the other topics on this, but I still can't get this thing to work, and I'm sure its something small I'm overlooking.
I have my python script running on my local host as a web service.
I have my postgresql instance running on my local host with a specific port, and a database created with a table that has data.
All I want to do is utilize psycopg2 to connect to my database from the python script. Should be pretty simple.
Now, as I understand it, I should be able to just download the psycopg2 file, run the setup, and move on from there.
Could someone PLEASE point me in the direction of how to do this? The python setup.py build and/or install command results in permission denied, which is just odd. I ran it with sudo, and again, same thing.
This is the last piece I need to get in place before I can continue working on the application that I was working on.
Have you tried using pip?
pip search psycopg2
if not installed
pip install psycopg2

Resources