You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@iceberg.apache.org by Ryan Blue <rb...@netflix.com.INVALID> on 2019/02/01 17:56:28 UTC
Re: Atomic operation/table common with S3
+Iceberg dev list (we've moved to Apache)
Manish,
HadoopTables should only be used in production with a file system that
supports atomic rename. That is because it uses atomic rename to ensure a
linear commit history. If you use it with S3 and two commits conflict, then
one will win but both will think they succeeded.
Using HiveTables fixes the problem by making updates while holding a table
lock. That ensures a linear history: the process that gets the lock commits
and others retry.
If you don't want a dependency on HMS and you don't need concurrent
commits, then you can use HadoopTables. It will work, but you will be
vulnerable to inconsistency.
On Thu, Jan 31, 2019 at 9:20 PM Manish Malhotra <
manish.malhotra.work@gmail.com> wrote:
> hello,
>
> With Iceberg, if S3 is used with HadoopTables, will it be good enough to
> do operations like adding data to Iceberg table from many job/task
> concurrently?
> Or have to use HiveTable which uses hive metastore (HMS)?
>
> As it would be great if we dont have dependency on HMS.
> As this can also lead to bottleneck because of HMS ?
>
> thanks !
>
> --
> You received this message because you are subscribed to the Google Groups
> "Iceberg Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to iceberg-devel+unsubscribe@googlegroups.com.
> To post to this group, send email to iceberg-devel@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/iceberg-devel/30c2afdf-6955-42a4-8111-d462c0423594%40googlegroups.com
> <https://groups.google.com/d/msgid/iceberg-devel/30c2afdf-6955-42a4-8111-d462c0423594%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
--
Ryan Blue
Software Engineer
Netflix
Re: Atomic operation/table common with S3
Posted by Ryan Blue <rb...@netflix.com.INVALID>.
Replies inline.
On Sat, Feb 2, 2019 at 9:34 AM Manish Malhotra <
manish.malhotra.work@gmail.com> wrote:
> Does Iceberg stores table's metadata files and version information in HMS
> database?
>
Iceberg stores the location of the current table metadata file. It also
syncs the schema with the table schema for convenience, but the Hive schema
is informational. The only metadata that matters is the table metadata
file, which is the source of truth.
> How do you see Iceberg+HMS performance when its being used for big clusters
> a. large number of partitions?, this should be good with iceberg?
>
Iceberg tables appear unpartitioned to HMS because they cannot be read
using the conventions of Hive tables.
The way Iceberg stores partition information actually scales better than
HMS in our experience.
HMS is only used for table-level commits, so it isn't a bottle-neck for
partition operations. Split planning and table updates are done by jobs.
For Spark, this is on the driver. That way, resources used for this scale
with the cluster.
Iceberg can also handle more unique partitions because it is not listing
directories. Each file could be a unique partition without incurring much
more overhead.
> b. large number of concurrent tasks to add data/partitions. (should add
> in batches and not streaming, as Iceberg is more for batching systems?)
>
Iceberg can handle concurrent write tasks. We have tables that are updated
every couple of minutes. The problem is really the number of files that
this generates. If you write often, you will probably need to compact files
to avoid the small files problem.
> c. large number of concurrent queries? this should also be ok as there
> is no locking?
>
Concurrent reads are fine. There is no locking required so there is no
scale bottleneck on the read side.
rb
--
Ryan Blue
Software Engineer
Netflix