Return-Path: X-Original-To: apmail-ambari-dev-archive@www.apache.org Delivered-To: apmail-ambari-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 443311846F for ; Mon, 4 Jan 2016 14:32:40 +0000 (UTC) Received: (qmail 11581 invoked by uid 500); 4 Jan 2016 14:32:40 -0000 Delivered-To: apmail-ambari-dev-archive@ambari.apache.org Received: (qmail 11541 invoked by uid 500); 4 Jan 2016 14:32:40 -0000 Mailing-List: contact dev-help@ambari.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ambari.apache.org Delivered-To: mailing list dev@ambari.apache.org Received: (qmail 11528 invoked by uid 99); 4 Jan 2016 14:32:40 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Jan 2016 14:32:40 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id C08EC2C0451 for ; Mon, 4 Jan 2016 14:32:39 +0000 (UTC) Date: Mon, 4 Jan 2016 14:32:39 +0000 (UTC) From: "yaolei (JIRA)" To: dev@ambari.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (AMBARI-14536) Enhance the function of HdfsResource to copy matching wildcard file to hdfs MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/AMBARI-14536?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] yaolei updated AMBARI-14536: ---------------------------- Description: In some cases,we need to copy matching wildcard file to hdfs. eg. we'd like to copy /usr/lib/spark*.jar to hdfs by following codes in Python: params.HdfsResource(hdfs_path, type="file", action="create_on_execute", source="/usr/lib/spark*.jar", group=params.user_group, owner=params.pdm_user, mode=0755 ) params.HdfsResource(None, action="execute") was: In some cases,we need to copy matching wildcard file to hdfs. eg. we'd like to copy /usr/lib/spark*.jar to hdfs by following codes in Python: params.HdfsResource(hdfs_path, type="file", action="create_on_execute", source="/usr/lib/spark*.jar", group=params.user_group, owner=params.pdm_user, mode=0755 ) params.HdfsResource(None, action="execute") > Enhance the function of HdfsResource to copy matching wildcard file to hdfs > --------------------------------------------------------------------------- > > Key: AMBARI-14536 > URL: https://issues.apache.org/jira/browse/AMBARI-14536 > Project: Ambari > Issue Type: Improvement > Affects Versions: 2.1.1 > Reporter: yaolei > Priority: Minor > Fix For: 2.3.0 > > > In some cases,we need to copy matching wildcard file to hdfs. > eg. we'd like to copy /usr/lib/spark*.jar to hdfs by following codes in Python: > params.HdfsResource(hdfs_path, > type="file", > action="create_on_execute", > source="/usr/lib/spark*.jar", > group=params.user_group, > owner=params.pdm_user, > mode=0755 > ) > params.HdfsResource(None, action="execute") -- This message was sent by Atlassian JIRA (v6.3.4#6332)