Connecting to MapD Core from Tweetmap app


#1

Hi,
Have configured Tweetmap to connect to MapD Core Server; GPU Instance and imported data to a table. I can as well StreamInsert data using Kafka to the db.
When i try to launch Tweetmap; the connection times out. The the same Tweetmap app when i point it to a remote server it works.
Attached are my connection configs and the error messages i get.
Kindly help me figure out what the problem could be.
Regards,
Mark

Table


#2

Hi,

i have two suspicions

  1. Is your browser actually running on the same machine as the MapD server?

  2. Are you really listening for https connections on port 9091 this is not a standard setup and you would have to share your mapd.conf changes to see if this is set up correctly.

regards


#3

Hi,
Thank you for your reply.
Yeah my browser is running on the same machine as the MapD server. Have changed the protocol from https to http but Tweetmap app still encounters the same problem. It seems there is an issues with browser-connector because have used a java client to write and read from the database successfully.
Below are my current configurations.

…mapd-config…
port = 9091
http-port = 9090
data = "@MAPD_DATA@"
null-div-by-zero = true

[web]
port = 9094
frontend = "@MAPD_PATH@/frontend

…Tweetmap Connector configurtaion…
const connection = new Connector()
.protocol(“http”)
.host(“localhost”)
.port(“9091”)
.dbName(“mapd”)
.user(“mapd”)
.password(“HyperInteractive”)

…Java application…
A java application using database configuration below can write and read from mapd database.

   static final String JDBC_DRIVER = "com.mapd.jdbc.MapDDriver";
   static final String DB_URL = "jdbc:mapd:localhost:9091:mapd";
   static final String USER = "mapd"
   static final String PASS = "HyperInteractive"

Regards.


#4

Hi,

Your config would require you to connect to 9090 to communicate via http.

try changing to

…Tweetmap Connector configurtaion…
const connection = new Connector()
.protocol(“http”)
.host(“localhost”)
.port(“9090”)
.dbName(“mapd”)
.user(“mapd”)
.password(“HyperInteractive”)

regards


#5

Thank you.

Let me try that.


#6

Hi
Thanks a lot. It worked
regards.