Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Info
titleObsolete

This page is obsolete. It has been replaced with the Amazon sandbox: https://aws.amazon.com/marketplace/pp/B018RBMFG0?sr=0-2

Redirect
locationhttps://aws.amazon.com/marketplace/pp/B018RBMFG0?sr=0-2
 

The Trafodion sandbox is a virtual appliance that provides a simulation of Trafodion on a single-node cluster, giving you an area where you can become familiar with Trafodion. Download the trafodion_release.ova file and install it on a PC that is already running one of the supported hypervisors. The sandbox already has Trafodion Release 1.1 and Hortonworks Data Platform (HDP) installed.

NOTE: If you encounter problems or need assistance with the installation or use of the Trafodion sandbox, please email tbd for help.

Anchor
PreReqs

...

PreReqs
Prerequisites

Anchor
CheckSystemResources
CheckSystemResources
Checking System Resources

To run the Trafodion sandbox successfully, you will need at least 16 GB of memory on your PC. The sandbox uses about 5 GB of memory while the Hadoop services and Trafodion are running, so make sure that you have enough available memory on your PC to support those processes. Otherwise, the sandbox will operate very slowly.

...

  • VirtualBox (free download)
  • VMware Workstation, version 10.0.3 build-1895310 or later (NOTE: Earlier versions might have trouble loading the Ambari console due to a networking bug.)

Anchor
EnableVirt
EnableVirt
Enabling Virtualization on Your PC

Your PC should have virtualization enabled in its BIOS settings. To enable virtualization on your PC, follow these steps:

  1. Power off your PC.
  2. When powering on your PC, press Esc to display the Startup Menu.
  3. When the Startup Menu appears, press F10 for BIOS Setup.
  4. In the BIOS Setup, select the System Configuration tab.
  5. Select Device Configurations.
  6. Scroll down and select Virtualization Technology.
  7. Click Save.
  8. When prompted to save changes, click Yes.
  9. Click Exit.
  10. When prompted again to save changes, click Yes.
  11. Restart your PC.

Installing the Trafodion Sandbox

Once your PC meets the prerequisites, follow these steps:

Downloading and Importing the OVA File

...

  1. Start the virtual machine. For example, in VMware Workstation, click Power on this virtual machine. In VirtualBox, click the Start button.

    The hypervisor boots up CentOS, which might take a few minutes to complete.

    • If booting up succeeds, a trafodion dialog box appears and displays a list of usernames.
    • If booting up fails and displays the following error message, your PC probably does not have virtualization enabled. See Enabling Virtualization on Your PC.
      This kernel requires an x86-64 CPU, but only detected an I686 CPU. 
      Unable to boot - please use a kernel appropriate for your CPU.
      
  2. In the trafodion dialog box, select trafodion, enter traf123 for the password, and then click Log In.

TIP: Instead of shutting down the system, hibernate the virtual machine. When you restart it, it should return to the same state in which you had left it.

Anchor
StartHadoop
StartHadoop
Starting the Hadoop Services

NOTE: It might take a while to start the Ambari console for the first time. Please be patient.

  1. Once you are logged in to the virtual machine, start the Hadoop services:
      1. Click the Firefox browser icon in the toolbar and enter sandbox:8080 (or localhost:8080) in the address bar to open the Ambari console.
      2. In the Ambari console, enter admin for the username and admin for the password, and click Sign in.
      3. All Ambari services should be started (green).
        • If they are not, in the left side of the console, click Actions and select Start All.
        • When prompted for confirmation, click OK. This will start the Hadoop services. Please note that it might take a while for all the Hadoop services to start, especially if your system has limited memory. (See thethe recommended system resources.)
        • If all the Hadoop services start up successfully, you will see a green check mark next to Start All Services, and its progress bar will be green at 100%. Please allow some time for all the services to be active and in a steady state. Once the services appear to be running, proceed to step 9.
        • If you see a red exclamation point next to Start All Services or a red exclamation point next to one or more services, click on each of the stopped services and manually try to start each one. (See step 10 for a list of the required Hadoop services.) Once you have manually started the services, proceed to step 9.

    NOTE: If any problems arise while you are starting the Hadoop services, see the Troubleshooting section.

  2. The HBase service might show a green check mark even when the HBase Master is not live. To check that the HBase Master is live, click the HBase service in the left pane of the Dashboard tab. If it shows that the HBase Master is not live, click Restart the HBase Master. Once the HBase Master is live, proceed to step 10.
  3. In the Ambari Dashboard, verify that these required Hadoop services continue to be in the Started state:
    • HDFS
    • MapReduce2
    • HBase
    • Hive
    • WebHCat
    • ZooKeeper
    If any of those services have stopped, restart them.
  4. Check the actual status of HBase by starting a terminal session (by selecting Applications > System Tools > Terminal from the toolbar) and running the HBase shell command called status 'detailed':
    [trafodion@trafodion ~]$ hbase shell
    
    hbase(main):001:0>status 'detailed' 
    version 0.98.0.2.1.7.0-784-hadoop2
    0 regionsInTransition
    master coprocessors: []
    1 live servers
        trafodion.local:60020 1423613814142
            ...
    0 dead servers
    
    hbase(main):003:0>
    

    If there are no live HBase RegionServers, return to step 9 to restart those servers. If the HBase RegionServers are live, proceed to step 12.

...

NOTE: Before bringing up the Trafodion instance, make sure that the required Hadoop services and the HBase RegionServers are still running. See steps 10 and 11 in Starting the Hadoop Services.

  1. Before starting Trafodion, verify the network interface where the connectivity traffic will flow:
    1. Start a terminal session by selecting Applications > System Tools > Terminal from the toolbar.
    2. Run the ifconfig command and note which network interface (that is, eth<n>) has an IP address.
    3. Compare that network interface name with the dcs.dns.interface setting in $MY_SQROOT/dcs*/conf/dcs-site.xml.
    4. If those names are different, change the dcs.dns.interface setting in dcs-site.xml to match the network interface name. You are now ready to start Trafodion.
  2. In the terminal window, run these commands to bring up the Trafodion instance:
    cds
    sqstart
    

    If sqstart runs successfully, you should see this output after running the sqcheck command:

    [trafodion@trafodion scripts]$ sqcheck
    Checking if processes are up.
    Checking attempt: 1; user specified max: 2. Execution time in seconds: 11.
    
    The SQ environment is up!
    
    
    Process		Configured	Actual	    Down
    -------		----------	------	    ----
    DTM		2		2	    
    RMS		4		4	    
    MXOSRVR		2		2	    
    

    If sqstart is not working (that is, if it does not complete after about five minutes):

    1. Type Ctrl-C in the session.
    2. Run ckillall:
      Background SQ Startup job (pid: 15136)
      # of SQ processes: 9 ^C
      
      [trafodion@trafodion scripts]$ ckillall
      This command might cause irreparable damage to your database. Execute sqstop
      instead. Do you really want to continue? y/n: y
      Going to execute ckillall
      [trafodion@trafodion scripts]$
      
    3. Restart the HBase RegionServers using the Ambari console. See step 9 in Starting the Hadoop Services.
    4. Retry sqstart.

    Once sqstart runs successfully, proceed to step 14 to launch sqlci.

  3. In the terminal session, perform a quick sanity check using the Trafodion Conversational Interface (sqlci). First, get the version of the software and metadata using the GET VERSION OF SOFTWARE and GET VERSION OF METADATA commands. For example:
    [trafodion@trafodion scripts]$ cd ..
    [trafodion@trafodion sql]$ cd ..
    [trafodion@trafodion ~]$ sqlci
    Trafodion Conversational Interface 1.0.0
    (c) Copyright 2014 Hewlett-Packard Development Company, LP.
    >>get version of software;
    
      System Version 1.0.0. Expected Version 1.0.0.
      Software is current.
    
    --- SQL operation complete.
    >>get version of metadata;
    
      Current Version 3.0. Expected Version 3.0.
      Metadata is current.
    
    --- SQL operation complete.
    

    The output of the GET VERSION commands should indicate that the software and metadata are current. 
    If you see error messages when running the GET VERSION commands, report the problem to tbd and try initializing Trafodion as follows to resolve the problem:

    >>initialize trafodion, drop;
     
    --- SQL operation complete.
    >>initialize trafodion;
     
    --- SQL operation complete.
    

    Rerun the GET VERSION OF SOFTWARE and GET VERSION OF METADATA commands to make sure that the software and metadata are current.

  4. Next, create a table with a couple of records. For example:
    >>create table test1 (f1 int, f2 int);
    
    --- SQL operation complete.
    >>insert into test1 values(1,1);
    
    --- 1 row(s) inserted.
    >>insert into test1 values(2,2);
    
    --- 1 row(s) inserted.
    >>select * from test1;
    
    F1            F2
    -----------   -----------
              1             1
              2             2
    
    --- 2 row(s) selected.
    >>get tables;
    
    Tables in Schema TRAFODION.SEABASE
    ==================================
    
    TEST1
    
    --- SQL operation complete.
    >>exit;
    

    Those SQL commands should run successfully.

...

  1. Get the IP address of the Trafodion sandbox so that you can later connect to it from a client application. In the Ambari console, click the Hosts tab, scroll down to see the Summary, and note the IP address of trafodion.local.
  2. Download and install the Trafodion JDBC and/or ODBC drivers so that you can connect to the Trafodion sandbox from a client application using the sandbox's IP address. For instructions, see the Trafodion Client Installation Guide (pdf, 1.0 MB). That guide explains how to install the drivers, how to connect to a Trafodion instance, and how to run sample programs to test the connection.

Anchor
Troubleshooting
Troubleshooting
Troubleshooting

Problem: App Timeline Server fails to start

...