Skip to main content
AI
  • Get started with AI

    • Red Hat AI

      Accelerate the development and deployment of enterprise AI solutions.

    • AI learning hub

      Explore learning materials and tools, organized by task.

    • AI interactive demos

      Click through scenarios with Red Hat AI, including training LLMs and more.

    • AI/ML learning paths

      Expand your Red Hat OpenShift AI knowledge using these learning resources.

    • AI quickstarts

      Focused AI use cases designed for fast deployment on Red Hat AI platforms.

    • No-cost AI training

      Foundational Red Hat AI training.

  • Featured resources

    • Red Hat OpenShift AI
    • Open source AI for developers
    • AI product application development
    • Open source-powered AI/ML for hybrid cloud
    • AI and Node.js cheat sheet

Red Hat AI Factory with NVIDIA

Red Hat AI Factory with NVIDIA is a co-engineered, enterprise-grade AI solution for building, deploying, and managing AI at scale across hybrid cloud environments.

Learn
  • Self-guided

    • Documentation

      Find answers, get step-by-step guidance, and learn how to use Red Hat products.

    • Learning paths

      Explore curated walkthroughs for common development tasks.

    • Guided learning

      Receive custom learning paths powered by our AI assistant.

    • See all learning
  • Hands-on

    • Developer Sandbox

      Spin up Red Hat's products and technologies without setup or configuration.

    • Interactive labs

      Learn by doing in these hands-on, browser-based experiences.

    • Interactive demos

      Click through product features in these guided tours.

  • Browse by topic

    • AI/ML
    • Automation
    • Java
    • Kubernetes
    • Linux
    • See all topics
  • Training & certifications

    • Courses and exams
    • Certifications
    • Skills assessments
    • Red Hat Academy
    • Learning subscription
    • Explore training
Build
  • Get started

    • Red Hat build of Podman Desktop

      A downloadable, local development hub to experiment with our products and builds.

    • Developer Sandbox

      Spin up Red Hat's products and technologies without setup or configuration.

  • Download products

    • Red Hat Enterprise Linux
    • Red Hat AI
    • Red Hat OpenShift
    • Red Hat Ansible Automation Platform
    • See all products
  • Featured

    • Red Hat build of OpenJDK
    • Red Hat JBoss Enterprise Application Platform
    • Red Hat OpenShift Dev Spaces
    • Red Hat Developer Toolset
  • References

    • E-books
    • Documentation
    • Cheat sheets
    • Architecture center
Community
  • Get involved

    • Events
    • Live AI events
    • Red Hat Summit
    • Red Hat Accelerators
    • Community discussions
  • Follow along

    • Articles & blogs
    • Developer newsletter
    • Videos
    • Github
  • Get help

    • Customer service
    • Customer support
    • Regional contacts
    • Find a partner

Join the Red Hat Developer program

Download Red Hat products and project builds, access support documentation, learning content, and more.

ConsoleDocsSupport Search
New For you

Recommended

We'll recommend resources you may like as you browse. Try these suggestions for now.

  • Product downloads
  • Cheat sheets
  • Red Hat Developer learning portal
  • Developer blog
  • E-books
  • Developer Sandbox
Log in

Get more with a Red Hat Developer account

  • Product downloads
  • Console access
  • Event registration
  • Training & trials
Explore more account benefitsLog in or register

A subscription may be required for some services.

Contact us

Red Hat JBoss Data Virtualization on OpenShift: Part 1 - Getting started

<p>&nbsp;</p> <quillbot-extension-portal></quillbot-extension-portal>

December 6, 2016
Cojan van Ballegooijen
Related topics:
Artificial intelligenceKubernetes
Related products:
Red Hat JBoss Enterprise Application PlatformRed Hat OpenShift Container Platform

    Red Hat JBoss Data Virtualization (JDV) is a lean, virtual data integration solution that unlocks trapped data and delivers it as easily consumable, unified, and actionable information. JDV makes data spread across physically diverse systems such as multiple databases, XML files, and Hadoop systems appear as a set of tables in a local database.

    When deployed on OpenShift, JDV enables:

    1. Service enabling your data
    2. Bringing data from outside to inside the PaaS
    3. Breaking up monolithic data sources virtually for a microservices architecture

    Together with the JDV for OpenShift image, we have made available OpenShift templates that allow you to test and bootstrap JDV.

    This article will demonstrate how to get started with JDV running on OpenShift. JDV is available as a containerized xPaaS image that is designed for use with OpenShift Enterprise 3.2 and later. We'll be using the Red Hat Container Development Kit (CDK) to get started quickly.

    The CDK provides a pre-built CDK based on Red Hat Enterprise Linux to help you develop container-based (sometimes called docker) applications quickly. The containers you build can be easily deployed on any Red Hat container host or platform, including: Red Hat Enterprise Linux, Red Hat Enterprise Linux Atomic Host, and our platform-as-a-service solution, OpenShift Enterprise 3.

    Prerequisites

    1. Download and install VirtualBox 5.0.26.
    2. Download and install Vagrant 1.8.1.
    3. Download Red Hat Container Tools and the CDK Vagrant box for VirtualBox. See the CDK Getting Started page for the installation instructions.
    4. Install additional Vagrant plugins to support Red Hat Subscription Management and other features. See the CDK 2.2 Installation Guide for more details.

    Note: CDK 2.2 is known to not work correctly with VirtualBox 5.1.x. If you already have VirtualBox 5.1.x installed, downgrade your installation to VirtualBox 5.0.26. See for more information on VirtualBox and vagrant compatibility in the CDK 2.2 release notes.

    Start CDK using vagrant

    After performing the installation steps above you should be able to start the CDK as depicted below.

    $ cd $CDK_HOME/components/rhel/rhel-ose
    $ vagrant up
    Bringing machine 'default' up with 'virtualbox' provider...
    ==> default: Clearing any previously set forwarded ports...
    ==> default: Clearing any previously set network interfaces...
    ==> default: Preparing network interfaces based on configuration...
     default: Adapter 1: nat
     default: Adapter 2: hostonly
    ==> default: Forwarding ports...
     default: 22 (guest) => 2222 (host) (adapter 1)
    ==> default: Running 'pre-boot' VM customizations...
    ==> default: Booting VM...
    ==> default: Waiting for machine to boot. This may take a few minutes...
     default: SSH address: 127.0.0.1:2222
     default: SSH username: vagrant
     default: SSH auth method: private key
     default: Warning: Remote connection disconnect. Retrying...
    ==> default: Machine booted and ready!
    ==> default: Registering box with vagrant-registration...
     default: Would you like to register the system now (default: yes)? [y|n]n
    ==> default: Checking for guest additions in VM...
     default: No guest additions were detected on the base box for this VM! Guest
     default: additions are required for forwarded ports, shared folders, host only
     default: networking, and more. If SSH fails on this machine, please install
     default: the guest additions and repackage the box to continue.
     default:
     default: This is not an error message; everything may continue to work properly,
     default: in which case you may ignore this message.
    ==> default: Configuring and enabling network interfaces...
    ==> default: Copying TLS certificates to /Applications/opt/jboss/cdk/components/rhel/rhel-ose/.vagrant/machines/default/virtualbox/docker
    ==> default: Mounting SSHFS shared folder...
    ==> default: Mounting folder via SSHFS: /Users/cvanball => /Users/cvanball
    ==> default: Checking Mount..
    ==> default: Checking Mount..
    ==> default: Folder Successfully Mounted!
    ==> default: Docker service configured successfully...
    ==> default: Machine already provisioned. Run `vagrant provision` or use the `--provision`
    ==> default: flag to force provisioning. Provisioners marked to run always will still run.
    ==> default: Running provisioner: shell...
     default: Running: inline script
    ==> default: Running provisioner: shell...
     default: Running: inline script
    ==> default:
    ==> default: Successfully started and provisioned VM with 2 cores and 8096 MB of memory.
    ==> default: To modify the number of cores and/or available memory set the environment variables
    ==> default: VM_CPU respectively VM_MEMORY.
    ==> default:
    ==> default: You can now access the OpenShift console on: https://10.1.2.2:8443/console
    ==> default:
    ==> default: To use OpenShift CLI, run:
    ==> default: $ vagrant ssh
    ==> default: $ oc login
    ==> default:
    ==> default: Configured users are (<username>/<password>):
    ==> default: openshift-dev/devel
    ==> default: admin/admin
    ==> default:
    ==> default: If you have the oc client library on your host, you can also login from your host.
    cvanball in /Applications/opt/jboss/cdk/components/rhel/rhel-ose
    $

    Preparing the JDV for OpenShift application templates

    Red Hat xPaaS images are pulled on demand from the Red Hat Registry:
    registry.access.redhat.com. To prepare JDV for OpenShift we need to setup the JDV for OpenShift image stream and application template.

    $ vagrant ssh
    [vagrant@rhel-cdk ~]$ oc login -u admin
    oc login -u admin
    Authentication required for https://127.0.0.1:8443 (openshift)
    Username: admin
    Password:
    Login successful.
    
    You have access to the following projects and can switch between them with 'oc project <projectname>':
    
     * default (current)
     * openshift
     * openshift-infra
    [vagrant@rhel-cdk ~]$ oc project openshift
    Now using project "openshift" on server "https://127.0.0.1:8443".
    [vagrant@rhel-cdk ~]$ oc create -f https://raw.githubusercontent.com/cvanball/jdv-ose-demo/master/extensions/is.json
    [vagrant@rhel-cdk ~]$ oc create -n openshift -f https://raw.githubusercontent.com/jboss-openshift/application-templates/master/datavirt/datavirt63-extensions-support-s2i.json

    The EAP for OpenShift image, on which the JDV for OpenShift image is built, extends database support in OpenShift using various artifacts. These artifacts are included in the built image through different mechanisms:
    - S2I artifacts that are injected into the image during the S2I process, and
    - Runtime artifacts from environment files provided through the OpenShift Secret mechanism.

    Creating and preparing an OpenShift Project using the JDV for OpenShift image

    Files for runtime artifacts are passed to the JDV for OpenShift image using the OpenShift secret mechanism. This includes the environment files for the data sources and resource adapters, as well as any additional data files. These files need to be present locally so as to create secrets for them.

    oc login -u openshift-dev
    oc new-project jdv-demo
    oc create -f https://raw.githubusercontent.com/cvanball/jdv-ose-demo/master/extensions/datavirt-app-secret.yaml
    curl https://raw.githubusercontent.com/cvanball/jdv-ose-demo/master/extensions/datasources.properties -o datasources.properties
    oc secrets new datavirt-app-config datasources.properties

    Configure and deploying the OpenShift Project using the JDV for OpenShift image

    Log in to the OpenShift web console

    1. Click at jdv-demo project
    2. Click Add to project button to list all of the default image streams and templates.
    3. Use the Filter by keyword search bar to limit the list to those that match datavirt. You may need to click See all to show the desired application template.
    4. Select an application template and configure the deployment parameters as required.
    5. Click Create button to deploy the application template.

    Demonstration

    In the following video we will demonstrate how to setup and configure JDV running on OpenShift as described in the previous steps.

    Red Hat JBoss Data Virtualization on OpenShift: Part 1 - Getting started from Cojan van Ballegooijen on Vimeo.

    Learn more

    • Red Hat JBoss Data Virtualization on OpenShift: Part 2 – Service enable your data
      https://developers.redhat.com/blog/2016/12/07/red-hat-jboss-data-virtualization-on-openshift-part-2-service-enable-your-data/
    • Red Hat JBoss Data Virtualization on OpenShift: Part 3 – Data federation
      https://developers.redhat.com/blog/2016/12/14/red-hat-jboss-data-virtualization-on-openshift-part-3-data-federation/
    • Red Hat JBoss Data Virtualization on OpenShift: Part 4 – Bringing data from outside to inside the PaaS
      https://developers.redhat.com/blog/2017/01/26/red-hat-jboss-data-virtualization-on-openshift-part-4-bringing-data-from-outside-to-inside-the-paas
    • JDV for OpenShift image
      Red Hat JBoss Data Virtualization for OpenShift image
    • JDV for OpenShift templates
      https://github.com/jboss-openshift/application-templates/tree/master/
    • JDV for OpenShift runtime artifacts used in this example
      https://github.com/cvanball/jdv-ose-demo
    • Documentation
      https://catalog.redhat.com/hardware
    • Red Hat Container Catalog
      https://access.redhat.com/containers
    • OpenShift Container Tested Integrations
      https://access.redhat.com/articles/2176281
    • Red Hat JBoss Data Virtualization
      https://developers.redhat.com/products/datavirt/overview
    • OpenShift
      http://www.openshift.com

     

    Last updated: October 26, 2023

    Recent Posts

    • A day in the life of an NVIDIA H100 on Red Hat OpenShift 5

    • Migrate BuildConfigs to builds for Red Hat OpenShift with one plug-in install

    • Run Red Hat Enterprise Linux CoreOS on NVIDIA BlueField DPUs

    • Agent harness engineering: Separating model capabilities from enforcement

    • What's new for developers in Red Hat Enterprise Linux 10.3 and 9.9

    Red Hat Developers logo

    Platforms

    • Red Hat AI
    • Red Hat Enterprise Linux
    • Red Hat OpenShift
    • Red Hat Ansible Automation Platform
    • See all products

    Build

    • Developer Sandbox
    • Developer tools
    • Interactive tutorials
    • API catalog

    Quicklinks

    • Learning resources
    • E-books
    • Cheat sheets
    • Blog
    • Events
    • Newsletter

    Communicate

    • About us
    • Contact sales
    • Find a partner
    • Report a website issue
    • Site status dashboard
    • Report a security problem

    Red Hat Developer

    Build here. Go anywhere.

    We serve the builders. The problem solvers who create careers with code.

    Join us if you’re a developer, software engineer, web designer, front-end designer, UX designer, computer scientist, architect, tester, product manager, project manager or team lead.

    Sign me up

    Red Hat legal and privacy links

    • About Red Hat
    • Jobs
    • Events
    • Locations
    • Contact Red Hat
    • Red Hat Blog
    • Inclusion at Red Hat
    • Cool Stuff Store
    • Red Hat Summit
    © 2026 Red Hat

    Red Hat legal and privacy links

    • Privacy statement
    • Terms of use
    • All policies and guidelines
    • Digital accessibility
    Ask AI