Can any one resolve this exception in the below Thrift program?
<p>I am new to Thrift.
I am trying to create a table ("sample") in Hbase using the following Thrift program on ubuntu 10.10 and can anyone tell me whether this is correct or not.</p>

<pre><code>#include &lt;stdio.h&gt;
#include &lt;unistd.h&gt;
#include &lt;sys/time.h&gt;
#include &lt;poll.h&gt;

#include &lt;iostream&gt;

#include &lt;boost/lexical_cast.hpp&gt;
#include &lt;protocol/TBinaryProtocol.h&gt;
#include &lt;transport/TSocket.h&gt;
#include &lt;transport/TTransportUtils.h&gt;

#include "Hbase.h"

using namespace apache::thrift;
using namespace apache::thrift::protocol;
using namespace apache::thrift::transport;
using namespace apache::hadoop::hbase::thrift;
using namespace std;
int main()
{
    boost::shared_ptr&lt;TTransport&gt; socket(new TSocket("localhost", 60010));
    boost::shared_ptr&lt;TTransport&gt; transport(new TBufferedTransport(socket));
    boost::shared_ptr&lt;TProtocol&gt; protocol(new TBinaryProtocol(transport));
    HbaseClient client1(protocol);
    try
    {
        transport-&gt;open();
        string tableName("Sample");
        vector&lt;ColumnDescriptor&gt; columns;
        columns.push_back(ColumnDescriptor());
        columns.back().name = "cf:";
        columns.back().maxVersions = 10;
        columns.push_back(ColumnDescriptor());
        columns.back().name = "test";
        try {   
            client1.createTable(tableName, columns);
        } catch (const AlreadyExists &amp;ae) {
            std::cerr &lt;&lt; "WARN: " &lt;&lt; ae.message &lt;&lt; std::endl;
        }
    }
    catch (const TException &amp;tx) {
        std::cerr &lt;&lt; "ERROR: " &lt;&lt; tx.what() &lt;&lt; std::endl;
    }

    return 0;
}
</code></pre>

<p>But i am getting the following exception at this place <code>client1.createTable(tableName, columns);</code></p>

<pre><code>ERROR: No more data to read.
</code></pre>

<p>Please help in resolving this.</p>
