Lab Exercise: Install & Configure OHDSI Tech Stack

Similar documents
GoPrint Web Update Utility

Introduction to IBM Rational HATS For IBM System i (5250)

Implementing and Maintaining Microsoft SQL Server 2008 Integration Services

Including Dynamic Images in Your Report

Installation Guide. Copyright 2017 by Educational Testing Service. All rights reserved. All trademarks are property of their respective owners.

SQream Dashboard Version SQream Technologies

Developer Training for Apache Spark and Hadoop: Hands-On Exercises

Setting Up a Zoom Classroom

Application Extender 16.3 Web Access

An exist XML Database for a Database Project **Draft **

Creating a PDF Report with Multiple Queries

CSE 101 Introduction to Computers Development / Tutorial / Lab Environment Setup

Mortgage Cadence System Minimum Requirements and Troubleshooting

Labtainer Student Guide

Installation Guide: VirtualBox, Windows 10, and Microsoft Visio (Mac OS)

EECS 1710 SETTING UP A VIRTUAL MACHINE (for EECS labs)

Database Explorer Quickstart

Introduction to IBM Data Studio, Part 1: Get started with IBM Data Studio, Version and Eclipse

Introduction to IBM Data Studio, Part 1: Get started with IBM Data Studio, Version and Eclipse

Switchboard. Creating and Running a Navigation Form

The following instructions cover how to edit an existing report in IBM Cognos Analytics.

Virtual Owl. Guide for Windows. Office of the Chief Information Officer. Learning Technologies, Training, Audiovisual, and Outreach

Virtual Desktop (Windows 7 VM) User Guide

Downloading and installing Db2 Developer Community Edition on Red Hat Enterprise Linux Roger E. Sanders Yujing Ke Published on October 24, 2018

Part I. UNIX Workshop Series: Quick-Start

Installing MediaWiki using VirtualBox

Your Own Virtual Playground. CS 1585 :: Doug McGeehan

Creating a portable bookmark file (Netscape). Ben Johnson

PARTS System Prototype. Everyone would start the PARTS system from an icon on their desktop. The icon could look similar to the following.

Getting Started With UNIX Lab Exercises

Cmpt 101 Lab 1 - Outline

Installation of PostgreSQL 9.0.x and Q-Monitor 4.x.x

Step-by-step guide for the libradtran virtual machine. A) Installation

CSCI 161: Introduction to Programming I Lab 1a: Programming Environment: Linux and Eclipse

A Postgres Evaluation Quick Tutorial From EnterpriseDB

Interlink Express Desktop Printing Service Installation Guide

2793 : Implementing and Maintaining Microsoft SQL Server 2005 Reporting Services

DOCS

ElephantSQL. PostgreSQL as a Service. Product overview. Last Updated

Immotec Systems, Inc. SQL Server 2008 Installation Document

Install a Telepresence Management Suite (TMS) Release Key

QUICK START GUIDE. Quick Start Guide. This will assist you to setup and distribute content to a StratosMedia Player device in 4 easy steps.

Technical Manual. Software Quality Analysis as a Service (SQUAAD) Team No.1. Implementers: Aleksandr Chernousov Chris Harman Supicha Phadungslip

CSE Linux VM. For Microsoft Windows. Based on opensuse Leap 42.2

Oracle SOA Suite 11. Hands-On Workshop VM Intro / Demo / Deployment

EASTWeb V2.0 Manual. Contents

Website Administration Manual, Part One

Tutorial 4 Data Persistence in Java

Media Writer. Installation Guide LX-DOC-MW5.1.9-IN-EN-REVB. Version 5.1.9

Lab - Share Resources in Windows

Linux at the Command Line Don Johnson of BU IS&T

mystat User Manual for Trader and Forwarding Agent (FA) Module Prepared by DNEX Hallmark e-commerce Sdn Bhd Version 1.1

Google Classroom User Manual

ViCAR Linux VM. For Microsoft Windows 7. Using Oracle VirtualBox and OpenSuSE Leap 42.2

Deltek Costpoint New Installation Guide for Microsoft SQL Server

Part 2 Uploading and Working with WebCT's File Manager and Student Management INDEX

IQSweb Installation Instructions Version 5.0

Center for Faculty Development and Support. Google Docs Tutorial

Instruction Guide! VERITEXT VAULT - ONLINE DEPOSITORY

Getting Started in the Online Lab

Pratt User Guide

CIS 231 Windows 10 Install Lab # 3

TIBCO Jaspersoft running in AWS accessing a back office Oracle database via JDBC with Progress DataDirect Cloud.

Send Messages by Class Roster. Overview. User Guide

Introduction, and Connecting to and Using the Remote Lab Environment

MyMack Version 9 Upgrade Details

JCCC Virtual Labs. Click the link for more information on installing on that device type. Windows PC/laptop Apple imac or MacBook ipad Android Linux

5. A small dialog window appears; enter a new password twice (this is different from Dori!) and hit Go.

PostgreSQL Installation Guide

IC121-End-to-End Virtual Security Hands-On Lab

Quick Guide to Installing and Setting Up MySQL Workbench

ECE 650 Systems Programming & Engineering. Spring 2018

Module 3: Working with C/C++

PowerPoint - Presentation Recordings

Edit Echo360 Lecture for IRSC Faculty

Operating Systems. Copyleft 2005, Binnur Kurt

CSCI 2132 Software Development. Lecture 3: Unix Shells and Other Basic Concepts

Appendix Z Basic ArcMap and GDSE Tools

Flex Reg For Learning & Development and Wellness programs

Report Writing for. Course Guide

ClassHub for Teachers. A User Guide for the Classroom

Before you get started, make sure you have your section code since you ll need it to enroll. You can get it from your instructor.

Operating Systems 3. Operating Systems. Content. What is an Operating System? What is an Operating System? Resource Abstraction and Sharing

Immotec Systems, Inc. SQL Server 2008 Installation Document

Using the IMS Universal Drivers and QMF to Access Your IMS Data Hands-on Lab

Implementing and Maintaining Microsoft SQL Server 2005 Analysis Services

Faculty Guide. Creating your Blank Shell for Blackboard Learn:

Reset the Admin Password with the ExtraHop Rescue CD

WA2592 Applied Data Science and Big Data Analytics. Classroom Setup Guide. Web Age Solutions Inc. Copyright Web Age Solutions Inc.

Installation Considerations: Included: Not Included:

Oracle Application Express Users Guide

Windows Me Plug-and-Play

SUG Breakout Session: OSC OnDemand App Development

Advisor Quick Start Notes

SharePoint: Fundamentals

Practice Labs User Guide

SharePoint: Fundamentals

Internet User Guide. Logging In

Log File Management Tool Deployment and User's Guide. Initializing the DBMS

This has both postgres and postgis included. You need to enable postgis by running the following statements

Transcription:

Lab Exercise: Install & Configure OHDSI Tech Stack Instructor: Time: Prerequisites: Student Knowledge: Lee Evans LTS Computing LLC 1.5 hours Laptop computer with 8GB of memory, VirtualBox installed and open OHDSI-in-a-box Virtual Machine image installed and running in VirtualBox (Virtual Machine image login id = ohdsi and password = ohdsi ) Comfortable using command line & Chrome web browser Some exposure to the OHDSI web tools & RStudio Learning : Upon completion of this lab exercise, you will be able to install and configure the OHDSI technology stack using the OHDSI Broadsea docker images. During this lab, you will learn how to: Install the OHDSI Broadsea docker images Configure the OHDSI Broadsea images to connect to a postgresql database Run the Broadsea images Verify the OHDSI Atlas & OHDSI RStudio applications are running View the log files Overview of Tasks: Install the OHDSI Broadsea docker images Configure the OHDSI docker images using the docker-compose.yml files Start the OHDSI docker containers and view the log files Configure the SOURCE and SOURCE_DAIMON tables using SQL Restart the OHDSI webtools docker container Verify the OHDSI Atlas & OHDSI RStudio applications are running View the log files in the Broadsea-Webtools container 1

Exercise 1 Install the OHDSI Broadsea docker images Demonstrate how to pull the OHDSI Broadsea docker images from DockerHub List the docker images on your machine to verify the docker images are installed Note: For this tutorial, the images are already pre-installed in the Virtual Machine and you should see a message that says the latest version is already installed. Usually it would take several minutes to download these two large docker images from the DockerHub web site. 1. Type the following command to get to the working directory for this tutorial: cd ~/ohdsi_stack 2. List the installed docker images with this command: (the above two images will be included in the list): docker images Note: The list of docker images should include the ohdsi/broadsea-webtools image and the ohds/broadseamethodslibrary 2

Exercise 2 Configure OHDSI docker images using the docker-compose.yml file Locate the docker-compose.yml configuration file for the OHDSI Broadsea images Edit the docker-compose.yml file to specify the database connection 1. Double click on the Leafpad text editor icon on the desktop. 2. In the text editor click on the open file menu option. 3. Navigate to the file /home/ohdsi/ohdsi_stack/docker-compose.yml and click the open button to open it. 4. Edit the docker-compose.yml file to set the values shown in bold red below: version: '2' services: broadsea-methods-library: image: ohdsi/broadsea-methodslibrary ports: - "8787:8787" - "6311:6311" volumes: -./home/rstudio:/home/rstudio -./site-library:/usr/lib/r/site-library broadsea-webtools: image: ohdsi/broadsea-webtools extra_hosts: - "database:10.0.2.15" ports: - "8080:8080" volumes: -.:/tmp/drivers/:ro -.:/tmp/achilles-data-reports/:ro environment: 3

- WEBAPI_URL=http://127.0.0.1:8080 - env=webapi-postgresql - datasource.driverclassname=org.postgresql.driver - datasource.url=jdbc:postgresql://database:5432/ohdsi - datasource.ohdsi.schema=ohdsi - datasource.username=ohdsi_admin_user - datasource.password=admin1 - spring.jpa.properties.hibernate.default_schema=ohdsi - spring.jpa.database-platform=org.hibernate.dialect.postgresqldialect - spring.batch.repository.tableprefix=ohdsi.batch_ - flyway.datasource.driverclassname=org.postgresql.driver - flyway.datasource.url=jdbc:postgresql://database:5432/ohdsi - flyway.schemas=ohdsi - flyway.placeholders.ohdsischema=ohdsi - flyway.datasource.username=ohdsi_admin_user - flyway.datasource.password=admin1 - flyway.locations=classpath:db/migration/postgresql Note: In the above docker-compose.yml configuration file we are configuring the following: postgres database jdbc connection string, database userid and database password flyway database connection info and schema where WebAPI tables will be created/maintained WebAPI services IP address and port RStudio port OHDSI Web applications port (e.g. Atlas) Spring Hibernate default schema Spring Batch table prefix 4

Exercise 3 Start the OHDSI Broadsea containers Change the working directory to the directory where the docker-compose.yml file is located Start the ohdsi/broadsea-methodslibrary and the ohdsi/broadsea-webtools containers Verify that the containers are running 1. In the command line window that we opened in Exercise 1, enter the following command: cd /home/ohdsi/ohdsi_stack/ Note: This will change the working directory to the directory where the docker-compose.yml file is located. 2. Enter the following command to verify that the docker-compose.yml file is in the current working directory: ls docker-compose.yml Note: The docker-compose.yml file name should be shown. If you see a file not found error message, then ask one of the faculty members for assistance. 3. Type the following command to start the two Broadsea containers: docker-compose up -d 4. Enter the following command to verify that the containers are running: docker-compose ps Note: If the containers are started successfully you will see the following two items listed: ohdsistack_broadsea-methods-library_1 /usr/bin/supervisord -c /e... Up 1410/tcp, 0.0.0.0:6311->6311/tcp, 0.0.0.0:8787->8787/tcp ohdsistack_broadsea-webtools_1 /usr/bin/supervisord Up 0.0.0.0:8080->8080/tcp Note. If you don t see the above items, then ask one of the faculty members for assistance. 5

Exercise 4 Configure the SOURCE and SOURCE_DAIMON tables using SQL Start the pgadmin3 Postgresql SQL client Connect to the CDMV5 postgresql database in the pgadmin3 SQL client Open the SQL queries (in the source_source_daimon.sql file) in the pgadmin3 client Execute the SQL queries to populate the SOURCE and SOURCE_DAIMON WebAPI configuration tables View the SOURCE table to verify the data that was inserted by the SQL queries View the SOURCE_DAIMON table to verify the data that was inserted by the SQL queries 1. Double click on the Pgadmin III (Elephant) icon on the OHDSI Virtual Machine desktop to start it. Note: It may take up to a minute for the Pgadmin III application to start. 2. Double-click on the database server connection called ohdsi to open the connection to the postgresql database. Note: There s already a database server connection configured in the Pgadmin III client called ohdsi. 3. Click on the SQL magnifying glass in the pgadmin III menu bar to open a new query window 4. Click on file, open in the pgadmin III menu, double click on the ohdsi_stack directory and double-click the file called source_source_daimon.sql to open it. 5. Right click on the SQL code and click the select all option (to select all the text in the SQL query window) and click on the execute icon (small green right facing triangle) in the pgadmin III menu-bar to execute the selected SQL queries. After the queries have finished executing close the pgadmin III SQL query window. 6. In the tree on the left of the main pgadmin III window, click on tables to expand the list of tables in the OHDSI database Schema and then scroll down and right click on the SOURCE table and click on the view data option. Note: A results table showing the SOURCE table rows will be shown. 7. Resize the SOURCE table results table columns by dragging the column divider lines to the right with your mouse so you can see the new data we just inserted into the SOURCE table. 8. In the tree on the left of the pgadmin III screen right click on the SOURCE_DAIMON table and click view data. Note: A results table will be shown. 9. Resize the SOURCE_DAIMON results table columns by dragging the column divider lines to the right with your mouse so you can see the new data we just inserted into the SOURCE_DAIMON table. 6

Exercise 5 Restart the OHDSI Broadsea Webtools docker container Restart the OHDSI Broadsea Webtools docker container, so it will load the WebAPI configuration data we just populated in the SOURCE and SOURCE_DAIMON tables. Verify that the OHDSI Broadsea Webtools Docker container is running. 1. In the command line window that we opened in Exercise 1, enter the following command to temporarily stop the docker container (it may take up to 30 seconds to stop): docker stop ohdsistack_broadsea-webtools_1 2. Enter the following command to restart the docker container: docker start ohdsistack_broadsea-webtools_1 3. Wait 30 seconds and then enter the following command to verify the docker container is running: docker ps Note. If you don t see ohdsistack_broadsea-webtools_1 listed, then ask one of the faculty members for assistance. 7

Exercise 6 Verify the OHDSI Atlas & OHDSI RStudio applications are running Verify the OHDSI Atlas & OHDSI RStudio applications have been successfully deployed and are up and running by opening them in the Chrome web browser. 1. Double click on the Chrome icon on the OHDSI VM desktop to start the Chrome web browser. 2. Enter the following URL to open the OHDSI Atlas web application: Note. Wait up to 5 minutes for the Atlas application to launch in the browser! http://localhost:8080/atlas/ 3. Open a new tab in the chrome browser by clicking on the rightmost mini-tab at the top right 4. Enter the following URL to open the OHDSI RStudio web application and enter the default userid rstudio and password rstudio when the Sign in to RStudio page appears in the browser: http://localhost:8787 Note. Wait up to 1 minute for the RStudio application to launch in the browser! Note. If the Atlas or RStudio web applications do not launch successfully then ask one of the faculty members for assistance. 8

Exercise 7 View the log files in the Broadsea-Webtools container Open a bash shell inside a running Broadsea-webtools docker container View the log files 1. In the command line window that we opened in Exercise 1, enter the following command to connect to a running Broadsea-webtools docker container and open an interactive bash shell inside the container: docker exec -it ohdsistack_broadsea-webtools_1 bash 2. Enter the following command to view the stderr log file inside the docker container: tail /var/log/supervisor/*stderr* Note. Include the * wildcard chars in the above command. 3. Enter the following command to view the stdout log file inside the docker container: tail /var/log/supervisor/*stdout* Note. Include the * wildcard chars in the above command. Note. If you encounter any issues with connecting to the running Broadsea-webtools container in step 1 then ask one of the faculty members for assistance. 9

Appendix If you want to install/update the Broadsea container, the commands to pull the OHDSI Broadsea docker images from the DockerHub website are as follows: docker pull ohdsi/broadsea-webtools docker pull ohdsi/broadsea-methodslibrary 10