- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在提高我的 Azure 数据工厂能力,比较复制 liveness 能与映射数据流写入 Azure Blob 存储中的单个 CSV 文件。
当我通过数据集 (azureBlobSingleCSVFileNameDataset) 通过 Azure Blob 存储链接服务 (azureBlobLinkedService) 写入单个 CSV 时,使用复制事件在我期望的 blob 存储容器中获取输出。例如,文件夹/output/csv/singleFiles 下的容器MyContainer 中的MyData.csv 的输出文件。
当我通过相同的 Blob 存储链接服务但通过不同的数据集 (azureBlobSingleCSVNoFileNameDataset) 写入单个 CSV 时,使用映射数据流,我得到以下信息:
{
"name": "azureBlobLinkedService",
"type": "Microsoft.DataFactory/factories/linkedservices",
"properties": {
"type": "AzureBlobStorage",
"parameters": {
"azureBlobConnectionStringSecretName": {
"type": "string"
}
},
"annotations": [],
"typeProperties": {
"connectionString": {
"type": "AzureKeyVaultSecret",
"store": {
"referenceName": "AzureKeyVaultLinkedService",
"type": "LinkedServiceReference"
},
"secretName": "@{linkedService().azureBlobConnectionStringSecretName}"
}
}
}
}
{
"name": "azureBlobSingleCSVFileNameDataset",
"properties": {
"linkedServiceName": {
"referenceName": "azureBlobLinkedService",
"type": "LinkedServiceReference",
"parameters": {
"azureBlobConnectionStringSecretName": {
"value": "@dataset().azureBlobConnectionStringSecretName",
"type": "Expression"
}
}
},
"parameters": {
"azureBlobConnectionStringSecretName": {
"type": "string"
},
"azureBlobSingleCSVFileName": {
"type": "string"
},
"azureBlobSingleCSVFolderPath": {
"type": "string"
},
"azureBlobSingleCSVContainerName": {
"type": "string"
}
},
"annotations": [],
"type": "DelimitedText",
"typeProperties": {
"location": {
"type": "AzureBlobStorageLocation",
"fileName": {
"value": "@dataset().azureBlobSingleCSVFileName",
"type": "Expression"
},
"folderPath": {
"value": "@dataset().azureBlobSingleCSVFolderPath",
"type": "Expression"
},
"container": {
"value": "@dataset().azureBlobSingleCSVContainerName",
"type": "Expression"
}
},
"columnDelimiter": ",",
"escapeChar": "\\",
"firstRowAsHeader": true,
"quoteChar": "\""
},
"schema": []
},
"type": "Microsoft.DataFactory/factories/datasets"
}
{
"name": "Azure SQL Table to Blob Single CSV Copy Pipeline",
"properties": {
"activities": [
{
"name": "Copy Azure SQL Table to Blob Single CSV",
"type": "Copy",
"dependsOn": [],
"policy": {
"timeout": "7.00:00:00",
"retry": 0,
"retryIntervalInSeconds": 30,
"secureOutput": false,
"secureInput": false
},
"userProperties": [],
"typeProperties": {
"source": {
"type": "AzureSqlSource",
"queryTimeout": "02:00:00"
},
"sink": {
"type": "DelimitedTextSink",
"storeSettings": {
"type": "AzureBlobStorageWriteSettings"
},
"formatSettings": {
"type": "DelimitedTextWriteSettings",
"quoteAllText": true,
"fileExtension": ".csv"
}
},
"enableStaging": false
},
"inputs": [
{
"referenceName": "azureSqlDatabaseTableDataset",
"type": "DatasetReference",
"parameters": {
"azureSqlDatabaseConnectionStringSecretName": {
"value": "@pipeline().parameters.sourceAzureSqlDatabaseConnectionStringSecretName",
"type": "Expression"
},
"azureSqlDatabaseTableSchemaName": {
"value": "@pipeline().parameters.sourceAzureSqlDatabaseTableSchemaName",
"type": "Expression"
},
"azureSqlDatabaseTableTableName": {
"value": "@pipeline().parameters.sourceAzureSqlDatabaseTableTableName",
"type": "Expression"
}
}
}
],
"outputs": [
{
"referenceName": "azureBlobSingleCSVFileNameDataset",
"type": "DatasetReference",
"parameters": {
"azureBlobConnectionStringSecretName": {
"value": "@pipeline().parameters.sinkAzureBlobConnectionStringSecretName",
"type": "Expression"
},
"azureBlobSingleCSVFileName": {
"value": "@pipeline().parameters.sinkAzureBlobSingleCSVFileName",
"type": "Expression"
},
"azureBlobSingleCSVFolderPath": {
"value": "@pipeline().parameters.sinkAzureBlobSingleCSVFolderPath",
"type": "Expression"
},
"azureBlobSingleCSVContainerName": {
"value": "@pipeline().parameters.sinkAzureBlobSingleCSVContainerName",
"type": "Expression"
}
}
}
]
}
],
"parameters": {
"sourceAzureSqlDatabaseConnectionStringSecretName": {
"type": "string"
},
"sourceAzureSqlDatabaseTableSchemaName": {
"type": "string"
},
"sourceAzureSqlDatabaseTableTableName": {
"type": "string"
},
"sinkAzureBlobConnectionStringSecretName": {
"type": "string"
},
"sinkAzureBlobSingleCSVContainerName": {
"type": "string"
},
"sinkAzureBlobSingleCSVFolderPath": {
"type": "string"
},
"sinkAzureBlobSingleCSVFileName": {
"type": "string"
}
},
"annotations": []
},
"type": "Microsoft.DataFactory/factories/pipelines"
}
{
"name": "azureBlobSingleCSVNoFileNameDataset",
"properties": {
"linkedServiceName": {
"referenceName": "azureBlobLinkedService",
"type": "LinkedServiceReference",
"parameters": {
"azureBlobConnectionStringSecretName": {
"value": "@dataset().azureBlobConnectionStringSecretName",
"type": "Expression"
}
}
},
"parameters": {
"azureBlobConnectionStringSecretName": {
"type": "string"
},
"azureBlobSingleCSVFolderPath": {
"type": "string"
},
"azureBlobSingleCSVContainerName": {
"type": "string"
}
},
"annotations": [],
"type": "DelimitedText",
"typeProperties": {
"location": {
"type": "AzureBlobStorageLocation",
"folderPath": {
"value": "@dataset().azureBlobSingleCSVFolderPath",
"type": "Expression"
},
"container": {
"value": "@dataset().azureBlobSingleCSVContainerName",
"type": "Expression"
}
},
"columnDelimiter": ",",
"escapeChar": "\\",
"firstRowAsHeader": true,
"quoteChar": "\""
},
"schema": []
},
"type": "Microsoft.DataFactory/factories/datasets"
}
{
"name": "azureSqlDatabaseTableToAzureBlobSingleCSVDataFlow",
"properties": {
"type": "MappingDataFlow",
"typeProperties": {
"sources": [
{
"dataset": {
"referenceName": "azureSqlDatabaseTableDataset",
"type": "DatasetReference"
},
"name": "readFromAzureSqlDatabase"
}
],
"sinks": [
{
"dataset": {
"referenceName": "azureBlobSingleCSVNoFileNameDataset",
"type": "DatasetReference"
},
"name": "writeToAzureBlobSingleCSV"
}
],
"transformations": [
{
"name": "enrichWithRuntimeMetadata"
}
],
"script": "\nparameters{\n\tsourceConnectionSecretName as string,\n\tsinkConnectionStringSecretName as string,\n\tsourceObjectName as string,\n\tsinkObjectName as string,\n\tdataFactoryName as string,\n\tdataFactoryPipelineName as string,\n\tdataFactoryPipelineRunId as string,\n\tsinkFileNameNoPath as string\n}\nsource(allowSchemaDrift: true,\n\tvalidateSchema: false,\n\tisolationLevel: 'READ_UNCOMMITTED',\n\tformat: 'table') ~> readFromAzureSqlDatabase\nreadFromAzureSqlDatabase derive({__sourceConnectionStringSecretName} = $sourceConnectionSecretName,\n\t\t{__sinkConnectionStringSecretName} = $sinkConnectionStringSecretName,\n\t\t{__sourceObjectName} = $sourceObjectName,\n\t\t{__sinkObjectName} = $sinkObjectName,\n\t\t{__dataFactoryName} = $dataFactoryName,\n\t\t{__dataFactoryPipelineName} = $dataFactoryPipelineName,\n\t\t{__dataFactoryPipelineRunId} = $dataFactoryPipelineRunId) ~> enrichWithRuntimeMetadata\nenrichWithRuntimeMetadata sink(allowSchemaDrift: true,\n\tvalidateSchema: false,\n\tpartitionFileNames:[($sinkFileNameNoPath)],\n\tpartitionBy('hash', 1),\n\tquoteAll: true) ~> writeToAzureBlobSingleCSV"
}
}
}
{
"name": "Azure SQL Table to Blob Single CSV Data Flow Pipeline",
"properties": {
"activities": [
{
"name": "Copy Sql Database Table To Blob Single CSV Data Flow",
"type": "ExecuteDataFlow",
"dependsOn": [],
"policy": {
"timeout": "7.00:00:00",
"retry": 0,
"retryIntervalInSeconds": 30,
"secureOutput": false,
"secureInput": false
},
"userProperties": [],
"typeProperties": {
"dataflow": {
"referenceName": "azureSqlDatabaseTableToAzureBlobSingleCSVDataFlow",
"type": "DataFlowReference",
"parameters": {
"sourceConnectionSecretName": {
"value": "'@{pipeline().parameters.sourceAzureSqlDatabaseConnectionStringSecretName}'",
"type": "Expression"
},
"sinkConnectionStringSecretName": {
"value": "'@{pipeline().parameters.sinkAzureBlobConnectionStringSecretName}'",
"type": "Expression"
},
"sourceObjectName": {
"value": "'@{concat('[', pipeline().parameters.sourceAzureSqlDatabaseTableSchemaName, '].[', pipeline().parameters.sourceAzureSqlDatabaseTableTableName, ']')}'",
"type": "Expression"
},
"sinkObjectName": {
"value": "'@{concat(pipeline().parameters.sinkAzureBlobSingleCSVContainerName, '/', pipeline().parameters.sinkAzureBlobSingleCSVFolderPath, '/', \npipeline().parameters.sinkAzureBlobSingleCSVFileName)}'",
"type": "Expression"
},
"dataFactoryName": {
"value": "'@{pipeline().DataFactory}'",
"type": "Expression"
},
"dataFactoryPipelineName": {
"value": "'@{pipeline().Pipeline}'",
"type": "Expression"
},
"dataFactoryPipelineRunId": {
"value": "'@{pipeline().RunId}'",
"type": "Expression"
},
"sinkFileNameNoPath": {
"value": "'@{pipeline().parameters.sinkAzureBlobSingleCSVFileName}'",
"type": "Expression"
}
},
"datasetParameters": {
"readFromAzureSqlDatabase": {
"azureSqlDatabaseConnectionStringSecretName": {
"value": "@pipeline().parameters.sourceAzureSqlDatabaseConnectionStringSecretName",
"type": "Expression"
},
"azureSqlDatabaseTableSchemaName": {
"value": "@pipeline().parameters.sourceAzureSqlDatabaseTableSchemaName",
"type": "Expression"
},
"azureSqlDatabaseTableTableName": {
"value": "@pipeline().parameters.sourceAzureSqlDatabaseTableTableName",
"type": "Expression"
}
},
"writeToAzureBlobSingleCSV": {
"azureBlobConnectionStringSecretName": {
"value": "@pipeline().parameters.sinkAzureBlobConnectionStringSecretName",
"type": "Expression"
},
"azureBlobSingleCSVFolderPath": {
"value": "@pipeline().parameters.sinkAzureBlobSingleCSVFolderPath",
"type": "Expression"
},
"azureBlobSingleCSVContainerName": {
"value": "@pipeline().parameters.sinkAzureBlobSingleCSVContainerName",
"type": "Expression"
}
}
}
},
"compute": {
"coreCount": 8,
"computeType": "General"
}
}
}
],
"parameters": {
"sourceAzureSqlDatabaseConnectionStringSecretName": {
"type": "string"
},
"sourceAzureSqlDatabaseTableSchemaName": {
"type": "string"
},
"sourceAzureSqlDatabaseTableTableName": {
"type": "string"
},
"sinkAzureBlobConnectionStringSecretName": {
"type": "string"
},
"sinkAzureBlobSingleCSVContainerName": {
"type": "string"
},
"sinkAzureBlobSingleCSVFolderPath": {
"type": "string"
},
"sinkAzureBlobSingleCSVFileName": {
"type": "string"
}
},
"annotations": []
},
"type": "Microsoft.DataFactory/factories/pipelines"
}
最佳答案
获取 0 长度(字节)文件的原因意味着虽然您的管道可能已成功运行,但它没有返回或产生任何输出。
更好的技术之一是预览每个阶段的输出,以确保每个阶段都有预期的输出。
关于azure-data-factory - Azure 数据工厂将数据流映射到 CSV 接收器导致零字节文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59457647/
我应该执行以下操作: 可能通过服务/工厂,使用 $q(异步)查询 API 以获取大型名称数据集 有另一个服务(也是异步的),它应该只返回上述工厂的元素,如果它们与某个字符串(搜索字段)匹配。目的是缩小
我有一个通用的基类。我有一个实现基类的具体类。 我将如何创建工厂类/方法来交付不同类型的具体类? 举个例子: public class ReceiverBase where T : IInte
我正在查看以下链接中的 Ninject Factory 扩展: http://www.planetgeek.ch/2011/12/31/ninject-extensions-factory-intro
工厂、提供商和服务这三个术语之间有什么区别? 刚刚了解 NHibernate 及其存储库模式(POCO 类等)。 最佳答案 工厂:通过将一堆位组合在一起或基于某种上下文选择类型来组装类 Provide
使用CGLIB我可以做到 final var enhancer = new Enhancer(); enhancer.setUseCache(false); enhancer.setSuperclas
我试图在 Kotlin 中使用伴随对象工厂方法(相当于 Java 中的静态工厂方法)创建一个嵌套内部类。这是我的代码的简化版本。 class OuterClass { var myData:L
我正在为我的大学做一个项目,但遇到了问题。 基本上,该项目由一个客户端-服务器应用程序组成,我想创建一个用于通信的 Packet 类。数据包由 header 和主体组成。现在问题来了。我可以有一些不同
这个问题在这里已经有了答案: Why doesn't polymorphism work without pointers/references? (6 个答案) What is object sl
我正在制作一个套接字工厂。我希望每个外部应用程序都使用 Socket 类的接口(interface),它是几个类(ServerSocketTCP、ClientSocketTCP、ServerSocke
我是 angularjs 的新手,我正在尝试创建一个小型电影数据库。这是我第一次使用工厂,我想确保这是正确的方法,以及如何在另一个功能中使用这个工厂,如下所示? 我希望这个工厂只运行一次,这样我就可以
这个问题在这里已经有了答案: Java inner class and static nested class (28 个答案) 关闭 5 年前。 public class DataFactory
我看过很多关于 C++ 工厂的帖子,但到目前为止我还没有看到解决我的问题的解决方案。 (虽然我可能遗漏了一些东西。) 示例控制台应用程序: #include #include #include
这是一个简单的 C++ 项目,有 2 种设计模式:单例和工厂,sigleton 也是一个模板化类,一个接口(interface) (IHash) 和一个类 (Hash1)。一个简单的工厂类 (Hash
这个问题类似于Factory and generics ,并且可能有相同的答案,但它是不同的。我有一个通用基类,它将由完全独立的 JAR 中的类进行扩展。所述 JAR 应该能够在不更改任何其他代码的情
问题是我需要为传递的类创建一个新实例 有没有办法重写这个函数,让它可以接受任意数量的参数? function createInstance(ofClass, arg1, arg2, arg3, ...
我想用简单的 C++ 语法创建一个简单的工厂方法: void *createObject(const char *str,...) { if(!strcmp("X",str)) retu
经过大约 10 个月的程序化 PHP 学习后,我现在正尝试着手研究基本的 OOP 原则和设计模式。这是一个爱好,我没有那么多时间去追求它,所以请原谅这个问题的水平很低。 我的网站(目前 100% 程序
我有一个简单的问题。 我如何编写一个工厂来定义使用 make() 或 create() 的关系,具体取决于原始调用 make() 还是 create()? 这是我的用例: 我有一个简单的工厂 /**
我正在尝试在延迟加载模块中提供 APP_BASE_HREF 注入(inject) token ,然而,工厂方法根本没有被调用。 在这里https://github.com/MaurizioCascia
我有以下 ast: import { factory as f } from 'typescript' const typeDeclaration = f.createTypeAliasDeclara
我是一名优秀的程序员,十分优秀!