Details
-
Type: extRequest
-
Status: Closed
-
Priority: Major
-
Resolution: Done
-
Fix Version/s: 2021
-
Component/s: FIWARE-TECH-HELP
-
Labels:None
-
Sender Email:
-
HD-Chapter:Data
-
HD-Enabler:Cosmos
Description
Hello,
i am providing technical support for FRACTALS accelerator project and i
have received the issue below.
Any help would be appreciated!
-------------
I am facing a difficulty with the Comsos integration. I've set up an FiLab
instance to work as a proxy server between my application server (external
to FiLab) and the global Cosmos instance. After trying to connect from my
application server, I found out that "all the documented connections to
such global instance (except for ssh connections and the Cosmos portal)
must be done from a FI-LAB virtual machine; on the contrary, the firewall
will stop them". That's why I created a proxy server in FiLab.
I connect successfully using ssh to both the proxy server and the Cosmos
instance, but when I try to upload a file from the proxy to Cosmos, using
Hadoop, it asks for a token in the headers. The request I send is as shown
in the documentation
<http://forge.fiware.org/plugins/mediawiki/wiki/fiware/index.php/BigData_Analysis_-_Quick_Start_for_Programmers>
in
the "Upload some data to HDFS" section.
I have tried to get my token using the API explained here
<https://github.com/telefonicaid/fiware-cosmos/tree/master/cosmos-auth>,
using as <your_idm_username> and <your_idm_password> the credentials I use
to login to FiLab. The response I get is "The request you have made
requires authentication", with a status code 401 (Unauthorized).
Also, I have declared the https://cosmos.lab.fiware.org/ as my user's
application in FiLab, with the permissions as shown here
<http://fiware-idm.readthedocs.org/en/latest/user_guide.html>.
Can you you help me with that? Thanks in advance.
-------------
BR,
Aggelos
Since January 1st, old domains won't be supported and messages sent to any domain different to @lists.fiware.org will be lost.
Please, send your messages using the new domain (Fiware-tech-help@lists.fiware.org) instead of the old one.
_______________________________________________
Fiware-tech-help mailing list
Fiware-tech-help@lists.fiware.org
https://lists.fiware.org/listinfo/fiware-tech-help
[Created via e-mail received from: Aggelos Groumas <gkraggel@di.uoa.gr>]
Which kind of connections do you want to stablish with the global instance of Cosmos in FIWARE Lab? Connections to following ports are not longer dropped by the firewall:
Being said that, it is true the HttpFS (WebHDFS) connections must be secured by using a n OAuth2 token. It seems the Quick Start Guide must be updated, nevertheless you may find useful information about using HttpFS+OAUuth2 in this link:
http://stackoverflow.com/questions/31187977/oauth2-access-to-cosmos-webhdfs-in-fiware-lab
Hope this helps!