Apache Nutch 2.3和MySQL(Apache Nutch 2.3 and MySQL)
有没有人试过使用Apache Nutch 2.3和MySQL? 有些人说Nutch 2.3不能再使用MySQL了,但是看看ivy.xml中的组件,MySQL仍然在可能的依赖列表中。 所以,我就像在旧的Apache 2.x版本中那样做了。 这是我的ivy.xml(gora工件的一部分):
<!--================--> <!-- Gora artifacts --> <!--================--> <!-- N.B. To use Gora SNAPSHOT's merely replace the 'ref' value with the SNAPSHOT version and add changing="true" alongside the dependency declaration. An example has been provided for the gora-core dependency as below --> <dependency org="org.apache.gora" name="gora-core" rev="0.2.1" conf="*->default"/> <!-- Uncomment this to use SQL as Gora backend. It should be noted that the gora-sql 0.1.1-incubating artifact is NOT compatable with gora-core 0.3. Users should downgrade to gora-core 0.2.1 in order to use SQL as a backend. --> <dependency org="org.apache.gora" name="gora-sql" rev="0.1.1-incubating" conf="*->default" /> <!-- Uncomment this to use MySQL as database with SQL as Gora store. --> <dependency org="mysql" name="mysql-connector-java" rev="5.1.18" conf="*->default"/>
在此使用ant运行时会产生一个指向build.xml第101行的错误
deprecation="${javac.deprecation}">
有没有人有解决方法? 谢谢。
Is there anyone who tried working with Apache Nutch 2.3 and MySQL? There are some people who say that Nutch 2.3 can no longer work with MySQL, but looking at the components in ivy.xml, MySQL is still in the list of possible dependencies. So, I did that as I would in the older Apache 2.x releases. Here's my ivy.xml (part of the gora artifacts):
<!--================--> <!-- Gora artifacts --> <!--================--> <!-- N.B. To use Gora SNAPSHOT's merely replace the 'ref' value with the SNAPSHOT version and add changing="true" alongside the dependency declaration. An example has been provided for the gora-core dependency as below --> <dependency org="org.apache.gora" name="gora-core" rev="0.2.1" conf="*->default"/> <!-- Uncomment this to use SQL as Gora backend. It should be noted that the gora-sql 0.1.1-incubating artifact is NOT compatable with gora-core 0.3. Users should downgrade to gora-core 0.2.1 in order to use SQL as a backend. --> <dependency org="org.apache.gora" name="gora-sql" rev="0.1.1-incubating" conf="*->default" /> <!-- Uncomment this to use MySQL as database with SQL as Gora store. --> <dependency org="mysql" name="mysql-connector-java" rev="5.1.18" conf="*->default"/>
Using ant runtime on this produces an error that points to line 101 of build.xml, saying
deprecation="${javac.deprecation}">
Does anyone have a workaround? Thanks.
原文:https://stackoverflow.com/questions/34872518
最满意答案
您应该能够使用ListUsers API调用执行您想要的操作,它接受一个过滤器,以便您可以过滤到您想要获得的属性!
不是一般意义上的搜索,但应该帮助您实现您想要的!
http://docs.aws.amazon.com/cognito/latest/developerguide/how-to-manage-user-accounts.html
You should be able to do what you want using the ListUsers API call, it accepts a filter so that you can filter down to just the attributes you want to get!
Not a search in the most general sense, but should help you to accomplish what you want!
http://docs.aws.amazon.com/cognito/latest/developerguide/how-to-manage-user-accounts.html
相关问答
更多-
我设法使用AWS :: cognito :: UserPool的schema属性来完成它: "myApiUserPool": { "Type": "AWS::Cognito::UserPool", "Properties": { "AdminCreateUserConfig": { "AllowAdminCreateUserOnly": true }, "Schema": [ { "Mutable": false, "N ...
-
截至今天,Cognito用户池无法实现。 用户只能使用他们的用户名或别名查找。 ListUsers API还允许通过在一些标准属性上提供搜索过滤器来搜索用户,但是sub不是其中之一。 As of today this is not possible with Cognito User Pools. Users can only be looked up using their username or aliases. ListUsers API also allows users to be searche ...
-
你在node.js中这样做,错误表明你没有返回服务期望的事件源。 当你的lambda函数完成执行时,你应该调用context.done()。 此外,在Cognito User Pool服务生成的任何触发源中,您只能编辑源的“响应”部分。 例如,PreSignUp触发源中的“autoConfirmUser”标志。 查看我们开发人员指南中的示例,了解更多详细信息。 You are doing this in node.js and the error indicates you are not returnin ...
-
我相信你指的是amazon-cognito-identity-js npm软件包: https ://www.npmjs.com/package/amazon-cognito-identity-js NPM包包含两个文件。 该软件包包含cognito SDK调用(aws-cognito-sdk)。 它还取决于核心AWS SDK。 Got this working. package.json needs dependencies: "amazon-cognito-identity-js": "^1.31.0" ...
-
Cognito,始终使用最新版本或lambda提供的默认版本。 您在文档中引用的版本是事件版本号。 如果将来Cognito引入了对请求格式的重大更改,您可以通过检查此版本号来保护您的代码不被破坏。 Cognito, always uses the latest version or whatever is the default version provided by lambda. The version that you are referring in the documentation is the ...
-
AWS Cognito,无法将用户池中的用户与身份池集成(AWS Cognito, Failure to Integrate a User in a User Pool with an Identity Pool)[2022-05-05]
请求有效负载的结构不正确。 登录应该是一个映射,而不是一个具有键值对的对象。 The structure of the request payload was incorrect. Logins should be a map, instead it was an object with a key value pair. -
如果您可以通过cognito id而不是facebook id键入ddb表,则可以使用cognito凭证调用api网关。 如果在调用lambda时使用被调用者凭据,则可以通过令牌$context.identity.cognitoIdentityId访问cognito id。 这可以确保此ID的所有者进行了呼叫。 您可以进一步检查$context.identity.cognitoAuthenticationProvider是否为graph.facebook.com以确保它们通过Facebook进行验证。 不幸 ...
-
您应该能够使用ListUsers API调用执行您想要的操作,它接受一个过滤器,以便您可以过滤到您想要获得的属性! 不是一般意义上的搜索,但应该帮助您实现您想要的! http://docs.aws.amazon.com/cognito/latest/developerguide/how-to-manage-user-accounts.html You should be able to do what you want using the ListUsers API call, it accepts a f ...
-
原始用户名/电子邮件不会跨越联合边界,因此,如果您通过Cognito Federated Identity交换AWS Credentials的Cognito用户池ID令牌,则Id令牌中的所有声明都将丢失。 如果您使用API网关使用Lambda,则可以直接使用Cognito User Pools Id令牌和Cognito Authorizer选项对请求进行身份验证,并且将使用上下文传递来自id令牌的所有声明。 细节在这里 。 不幸的是,听起来您正试图将多个提供商链接到同一个身份,除非您使用联合身份,否则您无法 ...
-
如何使用Lambda函数和AWS Cognito对用户进行身份验证?(How to authenticate users using Lambda functions and AWS Cognito?)[2022-07-05]
您正在使用AWSCognito但未定义。 将其更改为AWS 。 你想为cognito写一个包装器吗? 您可以在客户端而不是Lambda中进行此身份验证。 You are using AWSCognito but that is not defined. Change it to AWS. Are you trying to write a wrapper for cognito? You could do this authentication in the client instead of in a L ...