Skip to content

Instantly share code, notes, and snippets.

@kepricon
Created December 29, 2016 06:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kepricon/71fbdf1987cc0c663dc3ef26f21e48cb to your computer and use it in GitHub Desktop.
Save kepricon/71fbdf1987cc0c663dc3ef26f21e48cb to your computer and use it in GitHub Desktop.
agent_request.py result
xiaoyzhu@hn0-xiaoyz:~/kepricon/git/lagom-skil-api/skildistro/target/skil-distro-1.1-SNAPSHOT-dist/skil-distro-1.1-SNAPSHOT$ python sbin/agent_request.py --host localhost --port 9000 spark --deployMode client --trainingMasterPath "/tmp/parameteraveraging.json" --modelPath "/tmp/neuralnet.json"
{'status': '', 'totalExecutorCores': 1, 'driverClassPath': '', 'uiUrl': '', 'driverMemory': '8g', 'kill': '', 'principal': '', 'deployMode': 'client', 'driverLibraryPath': '', 'numExecutors': 2, 'modelPath': '', 'mainClass': 'io.skymind.skil.train.spark.SKILSparkMain', 'master': 'local[*]', 'driverCores': 1, 'jars': '', 'executorMemory': '', 'files': '', 'keyTab': '', 'propertiesFile': '', 'trainingMasterPath': '', 'supervise': '', 'yarnQueue': 'default', 'packages': '', 'excludePackages': '', 'name': 'SKILTrain', 'proxyUser': '', 'repositories': '', 'driverJavaOptions': ''}
Traceback (most recent call last):
File "sbin/agent_request.py", line 177, in <module>
route=endpoint)
File "sbin/agent_request.py", line 97, in send_request
json=http_args)
File "/usr/lib/python2.7/dist-packages/requests/api.py", line 88, in post
return request('post', url, data=data, **kwargs)
File "/usr/lib/python2.7/dist-packages/requests/api.py", line 44, in request
return session.request(method=method, url=url, **kwargs)
TypeError: request() got an unexpected keyword argument 'json'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment