Details
-
Type: Monitor
-
Status: Closed
-
Priority: Major
-
Resolution: Done
-
Affects Version/s: None
-
Fix Version/s: 2021
-
Component/s: FIWARE-TECH-HELP
-
Labels:
-
HD-Enabler:Cygnus
Description
Created question in FIWARE Q/A platform on 29-08-2018 at 20:08
Please, ANSWER this question AT https://stackoverflow.com/questions/52083773/fiware-cygnus-cant-persist-in-hdfsink
Question:
FIWARE Cygnus can't persist in HDFSink
Description:
I want to persist information in Hadoop through Cygnus.
I'm testing the services, but in Cygnus log I receive this:
msg=org.apache.http.client.protocol.ResponseProcessCookies[129] : Invalid cookie header: "Set-Cookie: hadoop.auth="u=hduser&p=hduser&t=simple&e=1535600601906&s=PBVO9ijLyamz6JCcTEohe76tgl0="; Path=/; Expires=jue, 30-ago-2018 03:43:21 GMT; HttpOnly". Unable to parse expires attribute: jue, 30-ago-2018 03:43:21 GMT
[NGSIRestHandler] Bad HTTP notification (GET method not supported)
time=2018-08-29T17:53:25.008Z | lvl=WARN | corr=50e71d08-183d-4181-835a-09c5935adec4 | trans=50e71d08-183d-4181-835a-09c5935adec4 | srv=user_activity | subsrv=/user_activity | comp=cygnus-ngsi | op=doPost | msg=org.apache.flume.source.http.HTTPSource$FlumeHTTPServlet[192] : Deserializer threw unexpected exception.
org.apache.http.MethodNotSupportedException: GET method not supported
But in the console, I receive that everything is ok.
My notification.sh is like that:
!/bin/sh
URL=$1
if [ "$2" != "" ]
then
SERVICE=$2
else
SERVICE=default
fi
if [ "$3" != "" ]
then
SERVICE_PATH=$3
else
SERVICE_PATH=/
fi
curl $URL v -s -S --header 'Content-Type: application/json; charset=utf-8' --header 'Accept: application/json' --header 'User-Agent: orion/0.10.0' --header "Fiware-Service: $SERVICE" --header "Fiware-ServicePath: $SERVICE_PATH" -d @ <<EOF
{
"subscriptionId": "51c0ac9ed714fb3b37d7d5a8",
"originator": "localhost",
"contextResponses": [{
"contextElement": {
"attributes": [
],
"type": "Room",
"isPattern": "false",
"id": "Room1"
},
"statusCode":
}]
}
EOF
The NGSI is not supposed to be intended to receive HTTP notifications as it is a REST API?
Can anyone help me? It's my first time using this kind of services and I am absolutely lost.
For more information, I am using Cygnus version 1.6.0.
Thank you.
2018-08-29 21:05|CREATED monitor | # answers= 0, accepted answer= False