-
0 votesanswersviews
spring mybatis事务被提交
我正在尝试使用mybatis spring事务管理我的问题是即使抛出异常,事务也会被提交 . 对此相对较新,非常感谢任何帮助 . 以下是代码片段 spring xml配置 <bean id="propertyConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholde... -
0 votesanswersviews
在GWT中,如何在给定blobstore密钥的字符串版本的情况下从appengine服务器显示图像
在GWT中,如果给出密钥的字符串版本,如何从appengine服务器端blobstore显示图像? 我想我已经将一个图像存储在appengine上 . 谁能告诉我它是否正确? try { FileService fileService = FileServiceFactory.... -
1 votesanswersviews
运行map时出错会减少R中的作业
我刚开始集成RHadoop . 它是与Hadoop集成的R-studio服务器,但是在运行map-reduce作业时遇到错误 . 当我运行下面的代码行 . library(rmr2) a <- to.dfs(seq(from=1, to=500, by=3), output="/user/hduser/num") *b <- mapreduce(input=a, m... -
0 votesanswersviews
WebHDFS在Hortonworks中出错
在设置历史服务器和配置单元服务器时,webHDFS在REST API中给出以下错误 . curl -sS -L -w '%{http_code}' -X PUT -T /usr/hdp/2.3.4.0-3485/hadoop/mapreduce.tar.gz 'http://ambari1.devcloud.247-inc.net:50070/webhdfs/v1/hdp/apps/2.3.4.0... -
0 votesanswersviews
完成33%后猪 Map 减少工作失败
我正在apache pig中运行group by子句,它正在创建map reduce工作,它在1/3完成后失败 . 无论如何我可以解决这个问题,因为日志没有给出任何失败的原因 . 我正在寻找以下任何一个 .1.找到确切错误的一些方法(即内存错误,数据类型错误等)2.任何使日志更加冗长以在屏幕上写入更多错误消息的方法 . 2016-04-03 22:59:40,252 [main] INFO or... -
0 votesanswersviews
在hadoop程序中压缩映射输出结果异常
在Hadoop程序中,我试图压缩 Map 结果,我写了下面的代码: conf.setBoolean("mapred.compress.map.output",true); conf.setClass("mapred.map.output.compression.codec",GzipCodec.class,CompressionCodec.class); ... -
1 votesanswersviews
tbigqueryinput Talend limit error
每当我从Bigquery表中获取指定超过100000条记录的数据时,它就会给我以下错误 运行查询:SELECT action_payout FROM [FreeBStaging.fb_appreporting] LIMIT 1000000组件中的异常tBigQueryInput_1 com.google.api.client.googleapis.json.GoogleJsonResponseE... -
7 votesanswersviews
如何使用Ruby on Rails 4.1.0beta1管理密钥和heroku?
随着secrets.yml文件的发布,我删除了对Figaro的依赖并将我的所有密钥移到secrets.yml并将该文件添加到.gitignore . 但是当我试图推送到Heroku时,Heroku表示他们需要在我的仓库中使用该文件来部署网站 . 这是有道理的,但如果我可以避免它,我不希望我的密钥在git中 . 使用Figaro,我会运行一个rake任务,将密钥部署到heroku作为env变量,并将... -
0 votesanswersviews
从Dataflow在BigQuery中插入数据
以前,有过PCollection的格式化结果;我正在使用下面的代码在大查询中插入行: // OPTION 1 PCollection<TableRow> formattedResults = .... formattedResults.apply(BigQueryIO.Write.named("Write").to(tableName) ... -
1 votesanswersviews
通过Dataflow将大型gzip JSON文件从Google Cloud Storage读入BigQuery
我试图从Google Cloud 端存储(GCS)中读取大约90个gz压缩日志文件,每个大约2GB大(未压缩10 GB),解析它们,并通过Google Cloud Dataflow将它们写入BigQuery(BQ)的日期分区表( GCDF) . 每个文件保存7天的数据,整个日期范围约为2年(730天和计数) . 我当前的管道如下所示: p.apply("Read logfile"... -
2 votesanswersviews
Apache Beam - BigQueryIO读取投影
我有一个从BigQuery表读取的Dataflow管道 . 但是,在读取数据时,除了使用read(SerializableFunction)或readTableRows()方法读取所有记录之外别无选择 . 我想知道,在使用这些方法时,是否可以选择提供类似列的投影(类似于HBaseIO Scan addColumn()过滤器) . 我知道在从BigQuery加载数据时可以选择执行查询(使用readT... -
0 votesanswersviews
Google表格API反向订单参数已被忽略
我正在使用 Google Sheets API 并尝试以相反的顺序获得结果,但它似乎忽略了反向参数 . Should be in reverse order https://spreadsheets.google.com/feeds/list/1xme2djjjb9IM6OW_T7tVXSm9UHNAvEKBn1kLEVT5HkY/od6/public/full?reverse=true Shou... -
0 votesanswersviews
使用工作表api v4将电子表格保存到文件夹
这是api的链接:https://developers.google.com/sheets/api/reference/rest/ 我发现'm trying to figure out how to save this spreadsheet to a folder in google drive. The only thing I'是这样的:(https://developers.google.... -
1 votesanswersviews
使用Google Spreadsheet API追加行的POST / PUT请求返回404错误
使用Google Spreadsheet API追加新行的POST / PUT请求返回404错误 . 以下是Google Spreadsheet API中附加方法的API参考文档https://developers.google.com/sheets/api/reference/rest/v4/spreadsheets.values/append 以下是请求和回复 . 如果删除了url路径中的':... -
3 votesanswersviews
NSXMLParser rss发出NSXMLParserInvalidCharacterError
NSXMLParserInvalidCharacterError#9 这是我在遇到一个奇怪的角色时得到的错误(比如复制并从单词粘贴到网络表单的引号,最终在Feed中) . 我正在使用的Feed没有给出编码,他们没有希望让他们改变它 . 这是我在 Headers 中得到的全部内容: <?xml version =“1.0”?> <rss version =“2.0”> 解析F... -
0 votesanswersviews
Google推送通知:停止通知
我正在使用Google Calendar API,我遇到了Google Calendar Push Notifications的问题 . 当我发出观看请求时,我必须向Google发送 Channel Id ,Google会在回复中向我发送 Resource Id . 如果我想停止 Channels 通知,我必须向Google发送 Channel Id 和 Resource Id . 如果我丢失... -
3 votesanswersviews
Google Calendar API不会发送通知
我的Google Calendar API存在问题 . 我正在创建一个新 Channels 来接收通知 . 以下是Guzzle和Google客户端创建的请求以及成功的订阅响应: POST /calendar/v3/calendars/info@mycalendaremail.com/events/watch HTTP/1.1 Host: www.googleapis.com User-Agent:... -
0 votesanswersviews
当我尝试使用Gmail API列出gmail线程时,我得到GoogleJsonResponseException:500内部服务器错误
我正在尝试使用GMAIL API从我的电子邮件帐户下载附件,使用OAuth 2.0服务器到服务器应用程序 . 这是我的代码: private static final String USER = "MYACCOUNT@gmail.com"; private static String emailAddress = "XXXXXXXX@developer.gse... -
0 votesanswersviews
在google drive rest api java中插入文件时的权限异常
我试图使用驱动器休息api将文件上传到谷歌驱动器,跟随此tutorial . 对于授权,功能是: public static Credential authorize() throws IOException { // Load client secrets. InputStream in = DriveQuickstart.class.getResourceAsS... -
0 votesanswersviews
如果邮件包含大量附件(超过5 MB),则在将邮件插入Gmail时会出现400错误请求
com.google.api.client.googleapis.json.GoogleJsonResponseException:400错误请求来自com.google.api.cli.client上的com.google.api.client.googleapis.json.GoogleJsonResponseException.from(GoogleJsonResponseExceptio... -
1 votesanswersviews
drive.changes() . watch返回GoogleJsonResponseException:401 Unauthorized,没有任何消息
我正在尝试关注Google Cloud 端硬盘的变化,并获得401例外 . 在这里搜索,我发现人们有详细的信息,为什么他们没有未经授权,尽管我什么都没有 . 这里我使用的代码: public static void main(String[] args) { try { httpTransport = GoogleNetHttpTransport.newTrustedT... -
1 votesanswersviews
webclient appengine在本地工作但在Google Cloud appengine上引发异常
用于通过appengine访问谷歌驱动器的webclient oauth2适用于localhost appengine但在谷歌 Cloud 应用程序引擎抛出异常 . static GoogleAuthorizationCodeFlow initializeFlow() throws IOException { Log.info("in initializeFlow oauthU... -
0 votesanswersviews
谷歌驱动器“监视”API引发401 Unauthorized错误
当我尝试执行以下代码时: gdrive.files() . watch(filed.getId(),channel).execute(); 以下异常是投掷 . 其他操作,如文件列表,上传等..工作正常 . 我还添加了域并在SearchConsole中验证以获取推送通知 . 请让我知道这个问题 . com.google.api.client.googleapis.json.GoogleJsonRes... -
0 votesanswersviews
是否可以在没有Javascript的情况下使用Google登录?
我有一个应用程序,我开始尝试做,因为任何重要的功能都不需要javascript . 是否可以在不需要Javascript的情况下执行Google登录? 我已经阅读了一些指南,如https://developers.google.com/identity/sign-in/web/sign-in和https://developers.google.com/identity/sign-in/web/ba... -
0 votesanswersviews
Google Cloud GMAIL API发送邮件错误
在谷歌 Cloud GMAIL API . 当我按照通过我的代码发送邮件的说明 . 抛出以下异常 . com.google.api.client.auth.oauth2.TokenResponseException:400错误请求{“error”:“invalid_grant”} com.google.api.client.auth.oauth2.TokenResponseException.f... -
1 votesanswersviews
Google Analytics 403:禁止使用Java中的p12密钥
我正在尝试通过API将用户添加到Google Analytics帐户 . 我有以下代码: private static final String APPLICATION_NAME = "MyNameProject"; private static final HttpTransport HTTP_TRANSPORT = new NetHttpTransport(); pri... -
1 votesanswersviews
通过Gmail API Google App Engine发送电子邮件
尝试使用Gmail API将电子邮件发送到App Engine . 以前我在“凭据”页面中创建了一个服务帐户密钥,它生成一个.P12文件,该文件位于setServiceAccountPrivateKeyFromP12File参数中 . 它有一个ID密钥加入帐户somename@appspot.gserviceaccount.com进入服务帐户页面 . 代码: /* Application name... -
0 votesanswersviews
执行Google Apps Script API时出错(可能的错误)
尝试使用Apps Script API for Java(独立和Android)执行部署的自定义应用程序脚本时,即使已根据文档(https://developers.google.com/apps-script/api/how-tos/execute)中列出的步骤设置了所有权限和配置,也会引发PERMISSION_DENIED异常 . 重现步骤: 使用Scope https://www.goo... -
0 votesanswersviews
Google API应用程序脚本功能执行始终获得500错误
我成功获取了访问令牌并初始化了脚本服务 . 我试过改变他们现在正确的范围 . 你能看到问题吗?结果是这样的: GoogleJsonResponseException错误响应:null错误:500内部服务器错误{“code”:500,“errors”:[{“domain”:“global”,“message”:“遇到内部错误 . ”,“reason”:“backendError “}],”mess... -
0 votesanswersviews
使用android SDK调用google app脚本API时返回403 Forbidden
我有一个Android应用程序,可以从谷歌表中写入和读取数据 . 并使用GoogleAccountCredential和Android脚本API SDK以及范围https://www.googleapis.com/auth/spreadsheets . 当我尝试从脚本中读取工作表数据时出现以下错误 . 另外,是否有必要在上述范围内添加驱动器权限? com.google.api.client.goo...