Does the cartodb Maps API support listing named maps in open source version? - cartodb

I have setup a local copy of cartodb, and while I can fully login to the console, I'm having trouble using the Maps API to list and modify map templates. Is this something that is supported?
Carto's official documentation on the Maps API with examples:
https://carto.com/docs/carto-engine/maps-api/named-maps/
I've tried commands that have worked in the past, and am having no luck.
Command to list map templates:
curl -X GET 'https://cartotest.localhost.lan/api/v1/map/named?api_key=APIKEY'
Depending whether I try using http or https I get the responses:
curl: (7) Failed to connect to cartotest.localhost.lan port 80: Connection refused
curl: (7) Failed to connect to cartotest.localhost.lan port 443: Connection refused
Has anybody else tried this? Maybe I just have something setup wrong. Thanks in advance!

Issue resolved by this post. Addressing the Maps API port 8181 solved the issue.

Related

How do I enable HTTPS on a Cloud Run for Anthos on Google Cloud cluster?

I recently started fiddling with Cloud Run for Anthos on GoogleCloud and I just can't enable HTTPS access. I've followed every step in the docs but it still doesn't work. I have a custom .dev domain which I configured through these steps and everything is fine with HTTP but HTTPS still says connection refused
curl http://api.default.customdomain.dev - works fine
but curl https://api.default.customdomain.dev - says:
curl: (7) Failed to connect to api.default.customdomain.dev port 443: Connection refused
I'm pretty sure there's something not specified in the docs, it happens a lot with GCP docs. Has anyone else struggled with this and might be able to help? Thanks!
EDIT: It was actually my fault - when creating the cert/private key secret I provided default for the --namespace value instead of gke-system. So, yeah... it's fixed now.
It was actually my fault - when creating the cert/private key secret I provided default for the --namespace value instead of gke-system. So, yeah... it's fixed now.

Logstash: HTTPS Connection to WebHDFS

I am facing issues with WebHDFS.
My organization uses WebHDFS on port 50470, which is both "kerberized" and requires HTTPS.
After following the thread in https://github.com/elastic/logstash/issues/8791, and overcoming the Kerberos issue, I am still facing issues with using Kerberos Authentication with HTTPS for WebHDFS.
I am getting the following logs below:
[2018-12-10T23:08:27,237][ERROR][logstash.outputs.webhdfs ] Webhdfs check request failed. (namenode: :50470, Exception: Failed to connect to host :50470, wrong status line: "\x15\x03\x03\x00\x02\x02")
Googling the web for "\x15\x03\x03\x00\x02\x02", it appears that logstash is trying to communicate via HTTP instead of HTTPS. However, I do not see any settings that allow for communication through HTTPS (not talking about use_ssl_authentication, as I do not need to authenticate my client).
I know that WebHDFS is working fine as curl works (after doing kinit):
curl --negotiate -u : -s -k "https://[hostname]:50470/webhdfs/v1/?op=LISTSTATUS"
May I know if there is a way to communicate via HTTPS for WebHDFS?

ElasticSearch-Kibana Connection Error: Unable to Connect

I have an elasticsearch server with host h1 running at port 9200. And i have a separate kibana server with host h2 running on port 5601. I have configured both of them properly and then tried to see the GUI of kibana.
It says Status:Red and in the error i see "Unable to connect to Elasticsearch at h1:9200"
I ran the basic troubleshoot mentioned in the elk documentation i.e. to check whether kibana.yml's elasticsearch.url field is properly referring to h1:9200 or not and vice versa for elasticsearch.yml's fields. Everything seems to be fine. What could be any other reason for this error? How to fix the same?
Could be for a number of reasons, connectivity/network configuration usually the prime suspect - check out this troubleshooting article for possible solutions

Cannot connect to localhost:8082

After successful running the maven project in eclipse, I cannot connect to http://localhost:8082. It shows the below error:
connection refused
What should I do to resolve the problem?
This exception usually occurs when there is no service listening on the port you are trying to connect to. A couple of things could be happening:
You have not started your server.
Your server is not waiting to
accept connections.
You are trying to connect to the wrong port
number.
You should check your services. I think they are either stopped or not working. You can check the services:-
a) if using windows by clicking services in control panel
b) if using linux type in the command Line sudo mqsql service.
you can refer this link- https://www.cyberciti.biz/faq/how-to-find-out-if-mysql-is-running-on-linux/
2)Also check the database connection string might you have not used correct string.

Couchbase server refusing network connections - any ideas what might be the issue?

I downloaded the community edition of couchbase server, and am running it on a mac system.
It's up and running according to the console:
However, when I try to test it:
$ telnet localhost 8091
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Connection closed by foreign host.
I've told the firewall app to allow the "Couchbase Server.app" application to accept incoming network connections, and doesn't seem to have helped.
Any ideas what might be the issue here?
Yes, telnet into Couchbase should be through 11211... http://www.couchbase.com/docs/couchbase-manual-1.8/couchbase-getting-started-testing.html
Did you try to connect to it through any of the SDK's (C/Ruby/Java/.NET/PHP/Python/Perl)? If you ever need immediate help, you can also go to IRC (freenode.net), in the #libcouchbase or #couchbase channels, or post another question here of course.
I was connecting to the server on the wrong port. To see the port to use when accessing the server, open up the relevant data bucket, and check what port it's running on. By default, it will most likely be accessible on 11211

Resources