Posts

How to execute RemoveAliasMapping in ElasticSearch using JEST -

I am trying to remove nickname mapping for index in ESA. Here's what I've tried: // Create Zest Clients Zest Client Client = Factory .get Object (); // Remove RemoveAliasMapping Object Remove Remove Allegations MappingAlassemping = Remove NewAllisMapping Builder ("OldIndex", "Surname") Build (); After creating an removeAliasMapping object, I could not find any way to execute it. If I use the API: the client. Execute , it says: executed in method (action T>) is not applicable for JestClient arguments (RemoveAliasMapping) In addition, I could not locate any other API for executing AliasMapping . Can anyone help me with this here? If possible, please enter an example. Try it out: Modifies modified revisions = alias Modified Alize Manufacturer (New Remove Aliased Mapping. Builder ("OldIndex", "Alias"). Build ()). Build (); JestResult Results = client.execute (Modified Oles);

How to pass session value to java class -

इस सवाल का पहले से ही एक उत्तर है: 6 उत्तर मेरे पास एक सर्विसलेट है इन मूल्यों और मैं इन मानों को सत्र विशेषता में जावा क्लास में पास करना चाहता हूं। मैं इन सत्र विशेषताओं का उपयोग कैसे कर सकता हूं क्योंकि मैं JSF या Struts का उपयोग नहीं कर रहा हूँ यह सरल जावा वेब अनुप्रयोग है यूजर आईडी = map.get ("यूज़रआईड"); Log.debug ("सीसीएम लेखांकन के मामले में यूजरआईडी हैं:" + यूजरआईडी); Session.setAttribute ("UserID", userID); स्ट्रिंग रिफ्रेश = ""; RefSys = map.get ("रिफ सिस्टम"); Log.debug ("सीसीएम लेखांकन के मामले में रिफ़्सिस्टम है:" + रिफ्रेश); Session.setAttribute ("रिफ सिस्टम", रिफर्स); इस तरह मैं जावा वर्ग में प्राप्त करने की कोशिश कर रहा हूं और मैं जावा वर्ग में रिक्त हो रहा हूं। एचटीटीपी सत्र सत्र = शून्य; session.getAttribute ( "UserID"); आप अपने सत्र को रिक्त रूप से सेट कर रहे हैं। परिवर्तन यह करने के लिए उर कोड: एचटीपी सत्र सत्र = नल; Http सत्र सत्र = request.getSession ...

Ruby on Rails Mailer not sending email in development mode -

I have a Rail application with a normal mailer that looks like this: class Event Myeler & lt; ActionMailer :: Base default: "example.com" def welcome_email (event, customer) @ event = event @ customer = customer mail: subject => "Test" ,:: from = & gt; @ Customer interval end My action_mailer settings look like this: config.action_mailer.smtp_settings = {: address = & gt; "Smtp.mandrillapp.com" ,: port = & gt; 587, # Ports 587 and 2525 are also supported with STARTTLS: enable_starttls_auto = & gt; True, # detects and uses STARTTLS: user_name = & gt; "My_email" ,: Password = & gt; "My_password", # SMTP Password is any valid API key: authentication = & gt; 'Login', # Mandrill support 'Plain' or 'Login': Domain = & gt; 'Yourdomain.com', # to identify your server while connecting your domain} I have a customer registration and it sends an email right away...

ruby on rails - delete last value of a splitted string -

I want to look at a hash but the last value should be: parameter controller Send to {"User" => {"Email" = & gt; "A@a.fr, lol@lol.fr"} Method def set_users @users = params [ : User] [: email] logger.debug "# {@ users.split (", "}". Each {| e | insert E}} "end log a@a.fr Eligible @ Lol.fr ["a@a.fr", "lol@lol.fr"] The issue is that the #Eech value (["a@a.fr", "Lol@lol.fr"]) which is not in the hash I will do this: P @ users.split (", ") [0 ..- 2] Meaning, take everything but ultimate. therefore: logger.debug @ users.split (",") [0 ..- 2] .join (',') You just need to: logger.debug @users

mysql - Best way to write in remote database -

I have a website on server 1 which is using the database on the same server (MySQL). I have a web application on Server 2 which is using other databases (MySQL) on the same server Both MySQL are confined to local access only I want my web - application to update some data in server 1's MySQL database (so that it appears on my website). What's the best way? Provide MySQL access to server 1 from a server other than a local server To send a PHP request to the HTTP server on server 1, it will then update the database Thanks The best way to do this is to do it on a different server Using the Web Service to Communicate Between Apps You Can Make a User SOAP or REST Web Service.

jboss7.x - how to minimize JBOSS AS 7 configuration to fit needs -

I must be able to configure JBOSS as 7.2 to start the necessary services in the project. ? What is the best aproach to configure JBoss as a 7.2 configuration and set for a user-defined configuration I'm interested to use: JAAS, EJB, JSF .. If I understand your request correctly, then it will remove the unnecessary subsystem. In standalone, you can configure many xmls according to your usage, and standalone config is to use on startup fixes, which will allow you to quickly adapt to different needs. In the domain, it can be as easy as you define different profiles, present or not each of them with a specific sub, and then assign the necessary profiles for your server group. The XML is being extracted through the modification or the CLI, adding to the simple CLI sometimes requires putting some of the "default" entries expected for the entertainment of the "default" sub, but once detected, it It is also easy. As a key element in your case, make sure...

openstack swift - Swiftstack web console is not comming up -

I created SwiftStack cluster using SwiftStack guidelines. Everything was perfect "After a successful finish of the job finishing config dip, I got a web console link." But, I'm not able to get the web console, receiving "this webpage is not available". Due to a firewall or a configuration problem? Please help! You should email directly to support@swiftstack.com for these issues, this forum is our support team Does not often go by. My garbage is that you should not change any load balancers using the SwiftStacks Load Balancer cluster configuration page, and redeploy please follow any inquiries on the above email.