1.1

Table Of Contents
sqlf server start -dir=server2 -locators=ip_address[10101]
-client-bind-address=ip_address -client-port=1529
In each command, the -locators option denes the peer discovery address to use for joining the SQLFire
distributed system. (Production deployments generally use multiple locator members, in which case you
would specify a comma-separated list of locator host[port] connections when starting a server.)
Again, the combination of -client-bind-address and -client-port indicates that each server
will listen for thin clients on a unique connection (ip_address:1528 and ip_address:1529, respectively).
However, in this distributed system all clients will connect using the locator instead of making direct
connections to servers.
8. Both SQLFire servers output messages similar to:
Starting SQLFire Server using locators for peer discovery:
ip_address[10101]
Starting network server for SQLFire Server at address /ip_address[1528]
SQLFire Server pid: 41502 status: running
Distributed system now has 2 members.
Other members: localhost(41149:locator)<v0>:32977/50114
Logs generated in
/Users/yozie/vFabric_SQLFire_11_bNNNNN/server1/sqlfserver.log
Starting SQLFire Server using locators for peer discovery:
ip_address[10101]
Starting network server for SQLFire Server at address /ip_address[1529]
SQLFire Server pid: 41533 status: running
Distributed system now has 3 members.
Other members: localhost(41149:locator)<v0>:32977/50114,
10.0.1.11(41502:datastore)<v1>:49915/50462
Logs generated in
/Users/yozie/vFabric_SQLFire_11_bNNNNN/server2/sqlfserver.log
Startup messages show the cluster membership details.
By default, new SQLFire servers host data as data stores, and are automatically added to a default server
group. You can optionally specify server group membership at startup using the server-groups boot property.
Connect to the Cluster Using SQLF
sqlf implements a command-line tool that is based on the Apache Derby ij tool. You can use sqlf to connect
to a SQLFire cluster and run scripts or interactive queries. You execute sqlf using the sqlf or sqlf.bat
script.
Procedure
1. In the same command prompt or terminal Window in which you started the SQLFire cluster, change to the
quickstart directory:
cd quickstart
The quickstart directory contains example SQL script les that you will use later in the tutorial.
2.
Start an interactive sqlf session:
sqlf
This command starts the interactive shell and displays the prompt: sqlf>.
3.
Print a brief list of the available sqlf commands:
help;
37
Tutorials