1 / 5

HTRC Data API Hands-on

HTRC Data API Hands-on. Yiming Sun. Goal. Show key pieces in writing code to request data from Data API Request token from OAuth2 token endpoint Request volumes from Data API Processing ZIP Demo code: Simple word count Available in Java (v1.5+) and Python (v2.7). Download code packages.

Télécharger la présentation

HTRC Data API Hands-on

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. HTRC Data API Hands-on Yiming Sun

  2. Goal • Show key pieces in writing code to request data from Data API • Request token from OAuth2 token endpoint • Request volumes from Data API • Processing ZIP • Demo code: • Simple word count • Available in Java (v1.5+) and Python (v2.7)

  3. Download code packages • http://htrc.mine.nu/confluence/display/OUT/HTRC+Uncamp+Data+API+Demo

  4. Run the demo code Java: $ unzip htrc-uncamp-java-demo.zip $ cd htrc-uncamp-java-demo $ chmod 700 *.sh $ ./volwc.sh 25vollist.txt <id> <scrt> Python: $ unzip htrc-uncamp-python-demo.zip $ cd htrc-uncamp-python-demo $ python VolumeWordCountClient.py 25vollist.txt <id> <scrt>

  5. What about parallelization? • At first level • Meandre workflows can leverage multiple cores • Use multi-threaded code when run on multi-core single node • Ideas on how to parallelize demo code • More advanced level • MPI • Map/Reduce • What algorithms do you use, and what are your basic needs?

More Related