zhy989 commented on issue #210: How to use message feed
URL: 
https://github.com/apache/incubator-openwhisk-package-kafka/issues/210#issuecomment-321536519
 
 
   @bjustin-ibm thanks
   in case 1 
   
   - Setting up a Message Hub package outside Bluemix
   Is this install Message Hub package on the local host outside Bluemix?
   
   I can sign in Bluemix with my username and password, why can not 
authenticate with Message Hub with the same username and password when I run 
the CLI "wsk -i trigger create MyMessageHubTrigger -f 
myMessageHub/messageHubFeed -p topic mytopic -p isJSONData true -p"?
   
   
   in case 2
   I try to run the example for 
"https://github.com/bjustin-ibm/openwhisk-package-kafka/blob/1aa6ae1684930d5175fa0ce36886b2e7db123248/devGuide.md";
   
   I can create docker image  kafkafeedprovider successfully
   but when I run script docker_run.sh, there is an error:
   - cat docker_run.sh 
   WSK_HOME=/openwhisk
   DB_PROTOCOL=`awk -F "=" '/db_protocol/ {print $2}' 
$WSK_HOME/ansible/db_local.ini`
   DB_HOST=`awk -F "=" '/db_host/ {print $2}' $WSK_HOME/ansible/db_local.ini`
   DB_PORT=`awk -F "=" '/db_port/ {print $2}' $WSK_HOME/ansible/db_local.ini`
   DB_USER=`awk -F "=" '/db_username/ {print $2}' 
$WSK_HOME/ansible/db_local.ini`
   DB_PWD=`awk -F "=" '/db_password/ {print $2}' $WSK_HOME/ansible/db_local.ini`
   DB_PREFIX=test
   docker run -e DB_URL="https://172.17.0.1:5984"; -e DB_USER=$DB_USER -e 
DB_PASS=$DB_PWD -p 81:5000 kafkafeedprovider
   
   - Traceback (most recent call last):
     File "app.py", line 24, in <module>
       from consumer import Consumer
     File "/KafkaFeedProvider/consumer.py", line 24, in <module>
       from database import Database
     File "/KafkaFeedProvider/database.py", line 23, in <module>
       class Database:
     File "/KafkaFeedProvider/database.py", line 26, in Database
       username = os.environ['CLOUDANT_USER']
     File "/usr/lib/python2.7/UserDict.py", line 40, in __getitem__
       raise KeyError(key)
   KeyError: 'CLOUDANT_USER'
   
   In here it must be CLOUDANT_USER ?  couchdb_user can not ?
   
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to