Running iquery from Any Computer

You can run the iquery command from any computer provided that your version of iquery matches the version of SciDB. Note that your client OS need not match the OS of the SciDB server. For example, you can install the iquery client on computer running Ubuntu, and access a SciDB server that is running CentOS.

To run iquery from a computer other than the SciDB server, do the following:

  1. Add SciDB's GPG public key by running the following command:
    • On Ubuntu:

      wget -O- https://downloads.paradigm4.com/key | sudo apt-key add -
    • On CentOS or RHEL:

      wget https://downloads.paradigm4.com/key
      sudo rpm --import key
      rm -f key 
  2. Add the SciDB repository to the repository folder, by creating the configuration file:
    • On Ubuntu 12.04, create the file: /etc/apt/sources.list.d/paradigm4.list and add the following line:

      deb https://USERNAME:PASSWORD@downloads.paradigm4.com/ enterprise/15.12/ubuntu12.04/
    •  On Ubuntu 14.04, create the file: /etc/apt/sources.list.d/paradigm4.list and add the following line:

      deb https://USERNAME:PASSWORD@downloads.paradigm4.com/ enterprise/15.12/ubuntu14.04/
    • On CentOS or RHEL, create the file: /etc/yum.repos.d/paradigm4.repo and add the following lines:

      [paradigm4]
      name=Paradigm4 repository
      baseurl=https://USERNAME:PASSWORD@downloads.paradigm4.com/enterprise/15.12/centos6.3/
      gpgcheck=1
  3. Run the appropriate update and package install commands for your OS:
    • On Ubuntu:

      sudo apt-get update
      sudo apt-get install paradigm4-15.12-utils
    • On CentOS or RHEL:

      sudo yum update
      sudo yum install paradigm4-15.12-utils

     

  4. Set the SciDB environment variables in the user environment.

    export SCIDB_VER=15.12
    export PATH="$PATH:/opt/scidb/$SCIDB_VER/bin:/opt/scidb/$SCIDB_VER/share/scidb"

 

When you run iquery, you must specify the correct host (the computer running a SciDB instance). For example, if your SciDB server is shared-c6-c2-vm1 (and one of the instances is running on the default base-port of 1239), you can start an iquery session with the following command:

$ iquery --host shared-c6-c2-vm1