Liqun:
Typically, I use an ssh client to connect to my running Hortonworks Sandbox, which is running on VirtualBox. The standard configuration is for VirtualBox to open up the console window. I believe this may be what you are referring to as “one terminal open”.
On my own workstation, I open up a local terminal/command window, and use an ssh client to login to the Sandbox. For Windows, putty is a freely available ssh client, and can be run from a command or PowerShell window. There are several popular graphical SSH clients for Windows; some well known ones are provided by F-Secure and VanDyke. For Mac OS/X, opening iTerm/iTerm2 and using the native ssh command also works. For Linux workstations, a terminal window should be available, or any console/tty prompt, and most distributions include an ssh client.
One I’ve reached a command prompt and can run my ssh client successfully, and with the Sandbox running, I then access the sandbox by typing
# ssh -p 2222 root@localhost
This requests an ssh session, connecting to localhost (i.e. your workstation),
The command line requests a connection to the SSH server running on TCP port 2222. The Sandbox VM sets up this port automatically.
The command line also requests connection as user “root”
When prompted, you’ll need to provide the password. That is “hadoop”
If you use a graphical SSH client such as putty, F-Secure, or Van Dyke, be sure to select the SSH protocol, and port 2222
The first time you login, you may have to answer a question or dialog regarding accepting a host key. Typically, you’ll answer “yes”.
It’s possible to open as many such sessions as your workstation will permit.
If you prefer to use only the VirtualBox console windows, it’s possible to install and use the “screen” program. The usage for “screen” is beyond the scope of my reply.
Best wishes,
Bryce Ryan