Problem Accessing Repositories from RapidMiner

jlo
jlo New Altair Community Member
edited November 5 in Community Q&A
Dear forum experts:

I've downloaded RapidAnalytics too. I have to agree with the previous comments that it is a really nice product with a lot of potential.

I can make it work without any problems in my local machine.

My problems start when I try to set up a real server in the web. I'm using Amazon EC2 (this is the largest provider of cloud computing here in the US).

I can set up the server. I can create users. I can login to the server for all those users.

My problem is repository access. When I try to access it from Rapid MIner (either the local version or the web version) i get an error that reads:

"Error fetching folder contents from the server. If the error message indicates that the server redirected the request too many times, this is probably due to an incorrect username/password and a basic authentication mechanism.

Then I get the details of the error. I don't know if I should post them.

It starts with:

"Exception: com.sum.xml.internal.ws.client
Message: HTTP transport error: java.net: UnknownHostException: ip-0AC33A91"

ip-0AC33A91 is the HOSTNAME of the virtual machine.

Thanks in advance to anybody for their help,

jlo







Tagged:

Answers

  • jlo
    jlo New Altair Community Member
    Ok. I figured it out mysel (yeah). I'll share with you the answer in case you run with the same difficulties.

    I found an article in the web that gave me the clue i needed ( http://stackoverflow.com/questions/2664991/amazon-ec2-and-jbossws ).

    It turns out that all you have to do is rename the hostname from its private dns address (the default in amazon ec2) to its public dns address and the problem is solved. (For the newbees like myself : To rename just use  sudo vi /etc/hostname. )

    So now I'm running my first RapidAnalytics server for about $1.50/day. At this point, I'm only using it as a repository for data and the entry servers provide me with enough storage space.

    Hope this is useful info for other people.
  • IngoRM
    IngoRM New Altair Community Member
    Hi,

    thanks for sharing your experiences! Actually, we planned to set up RapidAnalytics on the EC2 and I am sure your experiences will help us and others a lot.

    Cheers,
    Ingo
  • fischer
    fischer New Altair Community Member
    Hi,

    the reason for this is the following:

    Open

      http://yourhost:port/RAWS/RepositoryService?wsdl

    and scroll down. You will see the hostname is listed in the WSDL. This must be a hostname that your client understands, Otherwise you'll confuse it. The solution you posted is the way to go.

    Best,
    Simon
  • yakito
    yakito New Altair Community Member
    EDIT: I got it working but with a not very elegant way. I reinstalled RapidAnalytics and on the server IP I used the public DNS IP listed on the EC2 Instance. I don't know what I will do when I have to change the IP after a instance termination. Does anyone know how to change the host ip without having to re-install RapidAnalytics

    I followed this post: http://rapid-i.com/rapidforum/index.php?topic=3737.5;wap2 but no luck when changing that file.

    =====================


    Hello,

    I have a similar issue. I am able to connect to my EC2 RapidAnalytics Server via the browser, but when I try to connect through RapidMiner I get the following error:

    Error fetching folder contents from the server. If the error message indicates that the server redirected the request too many times, this is probably due to an incorrect username/password and a BASIC authentication mechanism

    HTTP transport error. java.net.ConnectException: Connection Refused
    Reason: Connection Refused

    The strange part is that when I point the Server URL on my web browser it works fine

    Any idea what can be causing this issue?
    Thanks!

  • fischer
    fischer New Altair Community Member
    Hi,

    does the RepositoryService?wsdl show the same URL you use in the browser?

    Best,
    Simon
  • alandhw
    alandhw New Altair Community Member
    Simon Fischer wrote:

    Hi,

    the reason for this is the following:

    Open

      http://yourhost:port/RAWS/RepositoryService?wsdl

    and scroll down. You will see the hostname is listed in the WSDL. This must be a hostname that your client understands, Otherwise you'll confuse it. The solution you posted is the way to go.

    Best,
    Simon

    Hi, Simon. What do you mean by "client understandable hostname" ?
    I check my RA host wsdl file, the address location is pointing to "http://host1-desktop:8080/RAWS/RepositoryService"
    To make the client able to access it remotely, instead of using "host1-desktop" am I need to change it to machine ip address?? For example, "http://172.16.30.98:8080/RAWS/RepositoryService", am I correct? If yes, how am I going to modify the wsdl file? where is it located?

    Regards,
    Alan 
  • fischer
    fischer New Altair Community Member
    Hi,

    by "client understandable" I mean that this is a hostname that the DNS server your client uses resolves correctly. You can test that by entering it into the address field of your browser.

    You cannot edit the WSDL file, but you can configure your server to fill in correct values. You specify the hostname in the installer, and you can edit them manually as is described here:

    http://rapid-i.com/rapidforum/index.php/topic,3737.msg16236.html#msg16236

    Best,
    Simon