小编Tam*_*oft的帖子

从多个存储帐户查询Azure存储分析日志时出错

我有多个Azure存储帐户,并且尝试使用HDInsight查询存储分析日志。我想对所有存储帐户使用单个查询,因此我创建了一个外部Hive表并为每个存储帐户添加了一个分区:

ADD JAR wasb:///HdiSamples/StorageAnalytics/hive-serde-microsoft-wa-0.13.0.jar;
CREATE EXTERNAL TABLE IF NOT EXISTS AggregateStorageLogs3 ( 
    VersionNumber string, 
    RequestStartTime string, 
    OperationType string, 
    RequestStatus string, 
    HttpStatusCode string, 
    EndToEndLatencyInMs bigint, 
    ServerLatencyInMs bigint, 
    AuthenticationType string, 
    RequesterAccountName string, 
    OwnerAccountName string, 
    ServiceType string, 
    RequestUrl string, 
    RequestedObjectKey string, 
    RequestIdHeader string, 
    OperationCount bigint, 
    RequesterIpAddress string, 
    RequestVersionHeader string, 
    RequestHeaderSize bigint, 
    RequestPacketSize bigint, 
    ResponseHeaderSize bigint,  
    ResponsePacketSize bigint, 
    RequestContentLength bigint,  
    RequestMD5 string, 
    ServerMD5 string, 
    ETagIdentifier string, 
    LastModifiedTime string, 
    ConditionsUsed string, 
    UserAgentHeader string, 
    ReferrerHeader string, 
    ClientRequestId string) 
COMMENT 'aggregated storage analytics log data' 
PARTITIONED BY …
Run Code Online (Sandbox Code Playgroud)

hadoop hive azure hdinsight

5
推荐指数
0
解决办法
831
查看次数

使用Azure SQL查询数据库

我正在尝试将数据从一个数据库表插入到Azure SQL中的另一个数据库表(在同一服务器上).我看到以下内容:

https://azure.microsoft.com/en-us/blog/querying-remote-databases-in-azure-sql-db/

这描述了我应该能够做到以下几点:

CREATE EXTERNAL DATA SOURCE RemoteReferenceData
WITH
(
    TYPE=RDBMS,
    LOCATION='myserver.database.windows.net',
    DATABASE_NAME='_2016-09-07-17412',
    CREDENTIAL= SqlUser
);

CREATE EXTERNAL TABLE [dbo].[RemotePhotos](
    [PhotoId] int NOT NULL,
    [Url] nvarchar(max) NULL,
)
WITH
(
    DATA_SOURCE = RemoteReferenceData
);
Run Code Online (Sandbox Code Playgroud)

但是当我运行时,我得到以下内容:

找不到指定的凭据.

如何为此目的创建凭据?有没有更好的方法来解决这个问题?

sql sql-server azure azure-sql-database

3
推荐指数
1
解决办法
2245
查看次数

标签 统计

azure ×2

azure-sql-database ×1

hadoop ×1

hdinsight ×1

hive ×1

sql ×1

sql-server ×1