druid icon indicating copy to clipboard operation
druid copied to clipboard

Issue with "Paste Data" data load

Open lgellis opened this issue 7 years ago • 3 comments

When I try to do a data load from "Paste Data", it fails every time. This is the same data I was able to load successfully via local disk and HTTP(s).

Affected Version

apache-druid-0.16.0-incubating

Description

This is running on my local mac.

I am attempting to load a variety of data sources through the "Paste data" option. Every source, I get the same error:

Failed to submit task: Instantiation of [simple type, class org.apache.druid.indexing.common.task.batch.parallel.ParallelIndexSupervisorTask] value failed: [InlineFirehoseFactory] should implement FiniteFirehoseFactory

I am keeping most of the defaults selected on the JSON spec. Please note that these same files work in Local Disk and HTTP(s) uploads. An example data set could be:

ACCOUNT_ID | TIMESTAMP | PURCHASE_ITEM | SPEND
-- | -- | -- | --
12345 | 2019-09-21T00:18:56Z | 8769 | 50
12347 | 2019-09-21T00:18:56Z | 8769 | 120
12005 | 2019-09-21T00:18:56Z | 7895 | 99
12347 | 2019-09-21T00:18:56Z | 8769 | 13
12005 | 2019-09-21T00:18:56Z | 23389 | 16

or


State | Avg Home Value | Avg Home Value - Bottom Tier | Avg Home Value - Top Tier | % Homes Sold at Loss | % Homes Sold at Gain
-- | -- | -- | -- | -- | --
AK | 263858.333 | 180560 | 333920 | 17.33 | 82.67
AL | 140725 | 98252.9412 | 215566.242 | 19.9766667 | 80.0233333
AR | 137354.546 | 95977.381 | 213573.404 | 12.99 | 87.01
AZ | 248024.324 | 160782.418 | 333802.128 | 14.3136364 | 85.6863636
CA | 629035.673 | 476747.344 | 886825.811 | 6.21264706 | 93.9334286
CO | 342575.096 | 256928.302 | 505369.461 | 2.62428571 | 97.5675
CT | 301411.02 | 206586.74 | 445132.584 |   |  
DC | 592919.048 | 306800 | 964400 | 3.85 | 96.15

Thank you

lgellis avatar Oct 14 '19 19:10 lgellis

The error you are seeing is a bug and is a manifestation of https://github.com/apache/incubator-druid/issues/8673

To get around it you simply need to turn off parallel indexing when using paste data (it would not add speed anyway)

image

In the above step please make sure that the "Parallel indexing" switch is off (like in the screenshot).

Also please note that the data sample you pasted in the issue would be sub-optimal for Druid, you would only really be able to parse it using the regexp parser and even then you would have issues with the first two rows. Unless you want to write your own parser it would be more advisable to use data in line json, CSV, or TSV formats.

vogievetsky avatar Oct 15 '19 03:10 vogievetsky

This issue has been marked as stale due to 280 days of inactivity. It will be closed in 4 weeks if no further activity occurs. If this issue is still relevant, please simply write any comment. Even if closed, you can still revive the issue at any time or discuss it on the [email protected] list. Thank you for your contributions.

stale[bot] avatar Jul 25 '20 04:07 stale[bot]

This issue has been closed due to lack of activity. If you think that is incorrect, or the issue requires additional review, you can revive the issue at any time.

stale[bot] avatar Aug 23 '20 00:08 stale[bot]