You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@drill.apache.org by zhixuan <zh...@gmail.com> on 2014/03/02 05:38:57 UTC

Does the Sqlline Support the Cluster Mode

Hi all,

It seems that the interactive ³sqlline² only works for the single node mode
according to the following link:
https://github.com/mhausenblas/apache-drill-sandbox/tree/master/M1

Is that true? Can I use the SQL query in distributed mode in some other way?

Thanks,
Xuan



Re: Does the Sqlline Support the Cluster Mode

Posted by zx <zh...@cs.uchicago.edu>.
Got it. Thanks very much!

Regards,
Xuan
On Mar 2, 2014, at 6:02 PM, Jacques Nadeau <ja...@apache.org> wrote:

> Currently the 'optimizer' is just a basic rule based direct
> transformation.  You can submit a logical plan.  However, if you do
> so, you need to use logical operators.  You cannot use physical
> operators in a logical plan.  The plan you are referencing leverages
> physical operators.
> 
> J
> 
> On Sun, Mar 2, 2014 at 3:35 PM, zhixuan <zh...@gmail.com> wrote:
>> Thanks very much. Besides, does it support the optimization for the logical
>> plan now? Dose the optimizer works in the Drill now? Since the physical plan
>> is the output of the optimizer.
>> 
>> When submit the plan with setting type to "-t logical" like this:
>> bin/submit_plan -f sample-data/parquet_scan_union_screen_physical.json -t
>> logical -zk 127.0.0.1:2181
>> 
>> It reports an error on parsing a logical plan.
>> 
>> But I can change the plan type ( in the
>> parquet_scan_union_screen_physical.json ) to this:
>> head:
>>    {
>>      type: "APACHE_DRILL_LOGICAL",
>>      version: 1,
>>      generator:
>>        {
>>          type: "manual"
>>        }
>> 
>> And submit it in the  "-t physical" setting:
>> bin/submit_plan -f sample-data/parquet_scan_union_screen_logical.json -t
>> physical -zk 127.0.0.1:2181
>> 
>> Then I can get results. Is this a bug or something else?
>> 
>> Thanks,
>> Xuan
>> 
>> On 3/2/14, 12:24 AM, "Jacques Nadeau" <ja...@apache.org> wrote:
>> 
>>> We're currently in the process right now of transitioning over to automatic
>>> exchange insertion using optiq.  This should be available soon.  In the
>>> meantime,  you can experiment with the distributed engine using physical
>>> plans.
>>> 
>>> Thanks
>>> Jacques
>>> On Mar 1, 2014 8:41 PM, "zhixuan" <zh...@gmail.com> wrote:
>>> 
>>>> Hi all,
>>>> 
>>>> It seems that the interactive ³sqlline² only works for the single node mode
>>>> according to the following link:
>>>> https://github.com/mhausenblas/apache-drill-sandbox/tree/master/M1
>>>> 
>>>> Is that true? Can I use the SQL query in distributed mode in some other
>>>> way?
>>>> 
>>>> Thanks,
>>>> Xuan
>>>> 
>>>> 
>>>> 
>>> 
>> 
>> 


Re: Does the Sqlline Support the Cluster Mode

Posted by Jacques Nadeau <ja...@apache.org>.
Currently the 'optimizer' is just a basic rule based direct
transformation.  You can submit a logical plan.  However, if you do
so, you need to use logical operators.  You cannot use physical
operators in a logical plan.  The plan you are referencing leverages
physical operators.

J

On Sun, Mar 2, 2014 at 3:35 PM, zhixuan <zh...@gmail.com> wrote:
> Thanks very much. Besides, does it support the optimization for the logical
> plan now? Dose the optimizer works in the Drill now? Since the physical plan
> is the output of the optimizer.
>
> When submit the plan with setting type to "-t logical" like this:
> bin/submit_plan -f sample-data/parquet_scan_union_screen_physical.json -t
> logical -zk 127.0.0.1:2181
>
> It reports an error on parsing a logical plan.
>
> But I can change the plan type ( in the
> parquet_scan_union_screen_physical.json ) to this:
> head:
>     {
>       type: "APACHE_DRILL_LOGICAL",
>       version: 1,
>       generator:
>         {
>           type: "manual"
>         }
>
> And submit it in the  "-t physical" setting:
> bin/submit_plan -f sample-data/parquet_scan_union_screen_logical.json -t
> physical -zk 127.0.0.1:2181
>
> Then I can get results. Is this a bug or something else?
>
> Thanks,
> Xuan
>
> On 3/2/14, 12:24 AM, "Jacques Nadeau" <ja...@apache.org> wrote:
>
>> We're currently in the process right now of transitioning over to automatic
>> exchange insertion using optiq.  This should be available soon.  In the
>> meantime,  you can experiment with the distributed engine using physical
>> plans.
>>
>> Thanks
>> Jacques
>> On Mar 1, 2014 8:41 PM, "zhixuan" <zh...@gmail.com> wrote:
>>
>>>  Hi all,
>>>
>>>  It seems that the interactive ³sqlline² only works for the single node mode
>>>  according to the following link:
>>>  https://github.com/mhausenblas/apache-drill-sandbox/tree/master/M1
>>>
>>>  Is that true? Can I use the SQL query in distributed mode in some other
>>>  way?
>>>
>>>  Thanks,
>>>  Xuan
>>>
>>>
>>>
>>
>
>

Re: Does the Sqlline Support the Cluster Mode

Posted by zhixuan <zh...@gmail.com>.
Thanks very much. Besides, does it support the optimization for the logical
plan now? Dose the optimizer works in the Drill now? Since the physical plan
is the output of the optimizer.

When submit the plan with setting type to “-t logical” like this:
bin/submit_plan -f sample-data/parquet_scan_union_screen_physical.json -t
logical -zk 127.0.0.1:2181

It reports an error on parsing a logical plan.

But I can change the plan type ( in the
parquet_scan_union_screen_physical.json ) to this:
head:
    {
      type: "APACHE_DRILL_LOGICAL",
      version: 1,
      generator:
        {
          type: "manual"
        }

And submit it in the  “-t physical” setting:
bin/submit_plan -f sample-data/parquet_scan_union_screen_logical.json -t
physical -zk 127.0.0.1:2181

Then I can get results. Is this a bug or something else?

Thanks,
Xuan

On 3/2/14, 12:24 AM, "Jacques Nadeau" <ja...@apache.org> wrote:

> We're currently in the process right now of transitioning over to automatic
> exchange insertion using optiq.  This should be available soon.  In the
> meantime,  you can experiment with the distributed engine using physical
> plans.
> 
> Thanks
> Jacques
> On Mar 1, 2014 8:41 PM, "zhixuan" <zh...@gmail.com> wrote:
> 
>>  Hi all,
>> 
>>  It seems that the interactive ³sqlline² only works for the single node mode
>>  according to the following link:
>>  https://github.com/mhausenblas/apache-drill-sandbox/tree/master/M1
>> 
>>  Is that true? Can I use the SQL query in distributed mode in some other
>>  way?
>> 
>>  Thanks,
>>  Xuan
>> 
>> 
>> 
> 



Re: Does the Sqlline Support the Cluster Mode

Posted by Jacques Nadeau <ja...@apache.org>.
We're currently in the process right now of transitioning over to automatic
exchange insertion using optiq.  This should be available soon.  In the
meantime,  you can experiment with the distributed engine using physical
plans.

Thanks
Jacques
On Mar 1, 2014 8:41 PM, "zhixuan" <zh...@gmail.com> wrote:

> Hi all,
>
> It seems that the interactive ³sqlline² only works for the single node mode
> according to the following link:
> https://github.com/mhausenblas/apache-drill-sandbox/tree/master/M1
>
> Is that true? Can I use the SQL query in distributed mode in some other
> way?
>
> Thanks,
> Xuan
>
>
>