Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id A9A22200BA5 for ; Wed, 19 Oct 2016 10:14:03 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id A8381160AEA; Wed, 19 Oct 2016 08:14:03 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id E9F64160ADE for ; Wed, 19 Oct 2016 10:14:02 +0200 (CEST) Received: (qmail 31978 invoked by uid 500); 19 Oct 2016 08:14:02 -0000 Mailing-List: contact dev-help@gearpump.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@gearpump.incubator.apache.org Delivered-To: mailing list dev@gearpump.incubator.apache.org Received: (qmail 31958 invoked by uid 99); 19 Oct 2016 08:14:02 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Oct 2016 08:14:02 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 74568C10A2 for ; Wed, 19 Oct 2016 08:14:01 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -7.019 X-Spam-Level: X-Spam-Status: No, score=-7.019 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-2.999] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id YQD-mRFQB62h for ; Wed, 19 Oct 2016 08:14:00 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with SMTP id AE76B5FC29 for ; Wed, 19 Oct 2016 08:13:59 +0000 (UTC) Received: (qmail 31011 invoked by uid 99); 19 Oct 2016 08:13:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Oct 2016 08:13:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 7B88B2C4C79 for ; Wed, 19 Oct 2016 08:13:58 +0000 (UTC) Date: Wed, 19 Oct 2016 08:13:58 +0000 (UTC) From: "darion yaphet (JIRA)" To: dev@gearpump.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (GEARPUMP-63) Gearpump Storage framework MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 19 Oct 2016 08:14:03 -0000 [ https://issues.apache.org/jira/browse/GEARPUMP-63?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15588010#comment-15588010 ] darion yaphet commented on GEARPUMP-63: --------------------------------------- AFAIK a lot of user who using gearump will read data from Kafka topics so maybe we can push application log into a topic or push to HDFS daily or hourly . It seems Log4J have support HDFS and Kafka Appender . > Gearpump Storage framework > -------------------------- > > Key: GEARPUMP-63 > URL: https://issues.apache.org/jira/browse/GEARPUMP-63 > Project: Apache Gearpump > Issue Type: New Feature > Reporter: Manu Zhang > Assignee: Weihua Jiang > > imported from https://github.com/gearpump/gearpump/issues/1197 on behalf of [~whjiang]. His original proposal, > In general, a Gearpump application requires following storage support: > # Jar-file storage to store the application jar file(s). > # application log. Currently we store logs in each node which makes application log analysis difficult. > # application metrics. > # application configuration. > # data source offset store (for at-least once semantics of streaming application) > # application state checkpoint store (for transaction semantics) > The general idea is: > # Provide a storage system satisfied the above requirements. > # Assume this storage is highly available. That means, it is user's duty to provide such kind of a storage. For test purpose, user can use some non-HA storage system. But, in product use, it shall be HAed. > # Isolate usage from implementation. That is, Gearpump doesn't rely on Hadoop-common or HDFS or one specific implementation to provide such storage. User is free to implement its own storage. > # This is a daemon provided functionality and can be used by every Gearpump application. > # This storage shall provide data retentation functionality and access control. > # This storage provides a set of API to meet the above requirements instead of one low-level API. > # User can override the system setting to provide dedicated implementation for certain sub-storage system, e.g. chekcpoint store. > # Akka replication shall store minimal info for an application and leave the majority to this storage system. I.e. akka replication is more like a seed to this storage system. > # In release, each storage implementation (e.g. storage-hdfs) is a standalone module/artifact. > The draft of this storage looks like (quite initial, tentative to change): > {code} > trait Storage { > def createAppStorage(AppName, AppId) : AppStorage > def getAppStorage(AppId) : Option[AppStorage] > } > trait AppStorage { > def open > def close > def getJarStore: JarStore > def getMetricsStore: AppMetricsStore > def getKVStore: KVStore > def getLogAppender: LogAppender > def getConfiguration(ProcessorId): UserConfig > def setConfiguration(ProcessorId, UserConfig) > } > trait JarStore { > def copyFromLocal(localPath, remotePath) > def copyToLocal(remotePath, localPath) > } > ///assume K is sortable > trait KVStore[K,V] { > def append(key, value) > def read(key): Try[Option[V]] > } > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)