When using the MarkLogic java-api-client I execute the boot-test.sh
sh src/test/resources/boot-test.sh
I get
Exception in thread "main" org.apache.http.conn.HttpHostConnectException: Connection to http://localhost:8002 refused
Is this simply an authentication issue?
I've changed the passwords in
java-client-api/src/main/resources/Example.properties
as well as the password in which I believe is the one in question
java-client-api/src/test/java/com/marklogic/client/test/util/TestServerBootstrapper.java
Although I still get connection refused. I've confirmed that the server has the management port set to 8002.
Also having the same general issue not being able to connect to MarkLogic with running curl on the server
curl --anyauth --user admin:xxxx -X PUT -d@'./one.xml' -H "Content-type: application/xml" 'http://localhost:8000/LATEST/documents?uri=/xml/one.xml'
curl: (7) couldn't connect to host
I can access the server through the 8001 interface so I assume it's some configuration error but haven't been able to figure it out. I've basically installed MarkLogic on three digital ocean centos 6 server, changed the admin passwords, set up a cluster of three nodes that are connected and created a database and three forests on each node. Otherwise I believe everything is default.
I installed the following on the centos 6 server
yum -y install glibc.i686 gdb.x86_64 redhat-lsb.x86_64
rpm -i /tmp/MarkLogic-RHEL6-8.0-5.x86_64.rpm
yum install java-1.7.0-openjdk-devel
yum install -y git
yum install -y httpd
service httpd start
yum install -y nano
yum install -y tree
yum install -y wget
wget http://repos.fedorapeople.org/repos/dchen/apache-maven/epel-apache-maven.repo -O /etc/yum.repos.d/epel-apache-maven.repo
yum install apache-maven
yum update
Any ideas on what I'm doing wrong?
Regards Conteh
I've basically installed MarkLogic on three digital ocean centos 6 server
. Are you sure you should be accessinglocalhost
, and not some other address? – grtjn